Re: The universal solution "Continue Shopping Button"
Yurij,
I sent you a PM with the hidden product url. Thanks, |
Re: The universal solution "Continue Shopping Button"
Quote:
As i told problem was in "DSEFU" mods ))) |
Re: The universal solution "Continue Shopping Button"
Thanks for looking into this.
I think it's better for me to give my customers a link that's already converted to an html form. That way, I won't have to deal with the issue. Jack |
Re: The universal solution "Continue Shopping Button"
Yurij,
I went to skin1/main/product_details.tpl and commented out the part in red: {if $product.forsale eq 'H'} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[categoryids]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_product_url}:</TD> <TD class="ProductDetails">{$catalogs.customer}/product.php?productid={$product.productid}{*&cat={$product.categoryid}*}</TD> </TR> {/if} It seems to work well, and I don't end up with the &cat=253 at the end of the url string. Can anybody see any downside to this modification? |
Re: The universal solution "Continue Shopping Button"
Quote:
no, because: product.php?productid=1111 <=> product.php?productid=1111 &cat=0 <=> product.php?productid=1111 &cat=0&page=0 |
Re: The universal solution "Continue Shopping Button"
So, what you're saying is I shouldn't have any problems?
|
Re: The universal solution "Continue Shopping Button"
Quote:
Yes. To view the product enough to know his ID. |
Re: The universal solution "Continue Shopping Button"
I added a file "continue_shopping.tpl" in /skin1/buttons so I could use the Continue Shopping link at the top and bottom of my cart:
PHP Code:
My store is straight forward, so the only pages a customer could come from that would make sense to return to are category pages and product pages, so in cart.php, I have: PHP Code:
|
Re: The universal solution "Continue Shopping Button"
Quote:
strpos($referrer, "product.php") - will don't work with url rewrite mods (DSEFU, CDSEO and etc). |
Re: The universal solution "Continue Shopping Button"
Quote:
|
Re: The universal solution "Continue Shopping Button"
My client requested that the visitor be returned to the last category they were viewing, rather than the last product or any other page. I decided to stick this near the bottom of my auth.php file so the last category info would follow the visitor around the site (removing the other code from cart.php):
PHP Code:
|
Re: The universal solution "Continue Shopping Button"
Quote:
What should happen if the transition to the cart was made from the page - Manufacture, search or etc.? |
Re: The universal solution "Continue Shopping Button"
In this case, transfers from those pages would not be counted. We don't use Manufacturers, but you could add conditions to check for any page to go back to. In the case of search, the code could be:
PHP Code:
|
Re: The universal solution "Continue Shopping Button"
Yurij,
The code works perfectly in X-cart 4.1.11. Excellent work, thank you for sharing it with the X-cart community! Best regards, e-webartist |
Re: The universal solution "Continue Shopping Button"
Great job. Thank you so much for sharing. Is it any chance to send customers back into root directory instead of subcategory?
Many thanks |
Re: The universal solution "Continue Shopping Button"
Quote:
Try change in "cart.php" code for universal solution "Continue Shopping Button" by this: PHP Code:
|
Re: The universal solution "Continue Shopping Button"
X-cart total newbie here. PHP, and SQL challenged.. Could someone please post or pm me the files and the edits including making the button, and all things needed to make this work in 4.1.10. I would love the ability to send the user back to the catagory they were viewing just before they hit add to cart. Right now the only thing I can tell thim is hit their backspace key to go back to that position.
Thanks Mike |
Re: The universal solution "Continue Shopping Button"
Quote:
please let me know can it made with just last category we were on as it seems cart taking more time to load with sql above may be im wrong. |
Re: The universal solution "Continue Shopping Button"
Quote:
Try change in "cart.php" code for universal solution "Continue Shopping Button" by this: PHP Code:
This modification just add one sql query (On load the page X-cart makes 80-140 query to DB :) ). |
Re: The universal solution "Continue Shopping Button"
Thanks so much Yurij. Works like a charm!
|
Re: The universal solution "Continue Shopping Button"
Nice mod, works perfectly. Thanks.
|
Re: The universal solution "Continue Shopping Button"
Quote:
Are you using Fast Lane Checkout? If so, there is a "continue shopping" button that will send the customer back to the home page. Much easier than using the backspace key :) This mod is if you want to send the customer somewhere else, and it gets quite complicated because people want the customer to be returned to different places. |
Re: The universal solution "Continue Shopping Button"
Was Updated first page with the latest forum messages from this thread.
|
Re: The universal solution "Continue Shopping Button"
Thanks for the help Yurij. Got it working now.
|
Re: The universal solution "Continue Shopping Button"
Thanks a lot for your help Yurij. Great work.
|
Re: The universal solution "Continue Shopping Button"
Just when you would have thought all permutations have been considered, time for a new challenge :-) .
What I am trying to do is the following: if arrived to the cart by adding an item, then "continue shopping" should return me to the product category. BUT if someon arrives to the cart in any other way (e.g. clicking on "view cart" from anywhere), then "continue shopping" should return them to the page they were on when they clicked on "view cart". I tried PHP Code:
but off course that just always gets me back to the page I was on before, never to the product category page, since every time cart.php?mode=add is called, it is immediately followed by a regular call to cart.php (with the referrer remaining the product detail page)... Help? :-) |
Re: The universal solution "Continue Shopping Button"
Quote:
I'm not sure, but try used next code (i don't tested this code enough): PHP Code:
|
Re: The universal solution "Continue Shopping Button"
Does anyone know how to get the same effect in 4.2 ? so that the customer goes back to the products lists and not the main home page ?
Thanks in advance ! |
Re: The universal solution "Continue Shopping Button"
I tried each one of those and they did not work for me.
Quote:
|
Re: The universal solution "Continue Shopping Button"
For some reason, it does not affect my page. Granted, I am coming from a static page outside of x-cart but why shouldn't it go BACK to that page?
Here is the link: https://www.thinscentsonline.com/store/cart.php?keep_https=yes |
Re: The universal solution "Continue Shopping Button"
Welcome to the X-Cart forums! Please start by reading the following thread, which will help you get started and hopefully make your experience here a positive one:
http://forum.x-cart.com/showthread.php?t=23970 Please note that this link is not an answer to your question, but we need you to update your signature with your X-Cart version so that we can answer your questions correctly. Thanks! :) |
Re: The universal solution "Continue Shopping Button"
It does affect your store... I added a product to the basket - clicked on Contineu Shopping and went back to home page instead of previous page ...
|
Re: The universal solution "Continue Shopping Button"
Quote:
It was already doing that. The process did not change. What I am looking for is to go back to the custom page where I clicked to add the product(s) to the cart. I don't want it to go back to the home page of X-Cart. I want it to go back to my page. |
Re: The universal solution "Continue Shopping Button"
If you use CDSEO Pro try this:
open modules/cdseolinks/cdseo_config.php Find PHP Code:
Before add PHP Code:
And now doesn't mater on which page you hit 'View Cart', 'Continue shopping' will always push you back to that page. Try it on my site, I hope you can find some bugs in there. Those folks who don't use CDSEO Pro, can get this mod for $139.99 O:) |
Re: The universal solution "Continue Shopping Button"
Would love to know how to do this in 4.2
|
Re: The universal solution "Continue Shopping Button"
Victor,
The following does exist in my "skin1/modules/Fast_Lane_Checkout/home_main.tpl" or in the 4.2 zip file. Code:
<td>{include file="modules/Fast_Lane_Checkout/big_button.tpl" button_title=$lng.lbl_continue_shopping style="button" href="home.php"}</td> Here is mine: Code:
{* |
Re: The universal solution "Continue Shopping Button"
try
skin1/modules/Fast_Lane_Checkout/home.tpl {include file="customer/buttons/button.tpl" button_title=$lng.lbl_continue_shopping style="div_button" href="home.php" additional_button_class="flc-1-button"} |
Re: The universal solution "Continue Shopping Button"
Quote:
Hi Yurij, is it any chance you could help me to display just previous main catid? Many thanks, Tanya |
Re: The universal solution "Continue Shopping Button"
Victor,
Thanks for the help it worked. I used to go back to category option, works great. |
Re: The universal solution "Continue Shopping Button"
Hi All,
Like to install but Can i see any store using this mod? Thanks, |
All times are GMT -8. The time now is 01:59 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.