UsingOSC Posted November 7, 2013 Posted November 7, 2013 I am using 2.3.1. The site is slow either the hosting or too many products. Search will take long time. So I want to have the product links on the search result page such as the one below to open in a new window. I am not sure where in which file and what to modify. Please help! A search result page link: http://lifeome.com/index.php/research-reagents/seamless-cloning-c-455_459 Thank you in advance! Cj
Guest Posted November 7, 2013 Posted November 7, 2013 Hey Chao, the search results should have product links already, the url you listed above doesn't show anything special that I see, do you mean you want them to open up into a new tab, like using target="_blank" on a href? Let me know, or give us your site address to see what the search pulls up right now.
UsingOSC Posted November 7, 2013 Author Posted November 7, 2013 Hi Sherry, Thank you for getting back to me. That is what I am trying to do, but not sure what file, and where to add the target="_blank" (I am not a programmer:() The link should show a search result page on my site, but the search is very slow. Currently, if a customer click on one product and then try to come back to this page to browse another product, it will go through the search process again, which is very slow. That's why I want to change it a little bit: When a product is clicked, it will open in a new browser window (or tab, preferred). This way, customers don't have to use the Back button on browser, and wait painfully for the search process. Thank you and please let me know what file and approximate location in the file to add the link modifier! chao
Jack_mcs Posted November 7, 2013 Posted November 7, 2013 It would be a mistake to open the links in a new window. The products in the new window wouldn't have any relation to the shop in the first window so the customer would have to start over. Also, what you are calling the search result page is actually a category page (big difference in oscommerce terms). As you mentioned, it is either slow due to the server or because of the quantity of categories/products. You need to find out which is at fault and fix that issue instead of creating new ones. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
UsingOSC Posted November 8, 2013 Author Posted November 8, 2013 Again, thank you for looking into it. But I am not sure I understand your description. Here is what I want to achieve: 1. customer visit lifeome.com 2. they do a search for eg. the term "westmark" 3. once the search is done, the following page is presented, where there are four products contain the search term: http://lifeome.com/advanced_search_result.php?keywords=westmark&search_in_description=1 4. Currently, if the customer click on the first product name, Westmark I for Western Blot, the product detail page will open in the same window. If customer decide to browse for the next product and use the browser's Back button, my server will do the search for "westmark" again in order to show the list of 4 products. If at step 4 above, the link opens in a new window or tab would prevent this from happening because the customer would just close the open page, and the search result page is still there. I hope I am describing it clearly. Thank you, cj
Jack_mcs Posted November 8, 2013 Posted November 8, 2013 I understand what you are saying but it will break your shop. Let's say I'm a customer at your shop and you have it setup to open the search in a new window. I go to the shop and spend an hour going through your products and adding several to my cart. I then create an account and am about to checkout when I realize I need one more thing so I do a search, which opens in a new window. I find the item in the search results and click on it and add it to my cart. But then I see all of the items I added are missing and I am no longer logged in. So I go back to the other tab and everything is there, though I may have to log back in again if the page has timed out. But I still need that other product and do another search. A third tab now opens. Do you see the problem? You may know how you want it to work but your customers won't. The better solution is to fix the problem. If you look in the url you posted, you will see it is searching product descriptions. That will significantly slow down the search. Search the forums here on how to change that code and the speed will be much better. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
UsingOSC Posted November 8, 2013 Author Posted November 8, 2013 Hi Jack: Thank you for the details and I see your concerns! I agree with you that I should solve the root cause. I don't have the capability now to do that. I am trying to see if moving to a different hosting service would speed up a little. I don't know much about session controls, but I thought and with shopping experiences from other sites, the browsers works along with the session control is able to keep track of shopping cart, as long as it is on the same computer with the same browser if the user is not logged into an account. If customer is browsing and adding items while logged in, the shopping cart will be updated regardless same computer or browser. For example, on my computer, I open two tabs and add an item to cart from each tab. When I log in and check out from either tab, the cart will have both items in there.
UsingOSC Posted November 9, 2013 Author Posted November 9, 2013 Potential problems sorted out, I still need to know which file and where to modify to make the links open in new window. Thank you!
burt Posted November 11, 2013 Posted November 11, 2013 You need the product listing module at, surprisingly /includes/modules/product_listing.php Find all the <a href bits and change to <a target="_blank" href
Recommended Posts
Archived
This topic is now archived and is closed to further replies.