Hi There,
So, I have searched for a solution, and just when i thought i found it, it was for an older version of opencart. I hope someone can help me, I am using 1.4.9.3.
There is a button in the cart "Continue Shopping". If you click this, it currently directs you to the home page, which i don't believe gives customers the most convenient shopping experience. I wanted to redirect customers to the category of the last viewed product, unless of course, they have gone into their account and viewed their cart. In this case, it will take them back to the home page.
Please note, i am not a super duper programmer, so please provide simple instructions. Really appreciate any help and I must say, this community is EXCELLENT! have done so much with these forums. Thanks
So, I have searched for a solution, and just when i thought i found it, it was for an older version of opencart. I hope someone can help me, I am using 1.4.9.3.
There is a button in the cart "Continue Shopping". If you click this, it currently directs you to the home page, which i don't believe gives customers the most convenient shopping experience. I wanted to redirect customers to the category of the last viewed product, unless of course, they have gone into their account and viewed their cart. In this case, it will take them back to the home page.
Please note, i am not a super duper programmer, so please provide simple instructions. Really appreciate any help and I must say, this community is EXCELLENT! have done so much with these forums. Thanks
I dont think its as easy as redirecting someone to the last viewed product, but i can tell you where the info is, and you can change it accordingly to your liking.
for category pages
catalog/controller/product/category.php
find
replace route=common/home to something else you wish, like perhaps a category page
same principle for the product file, and any other that has a continue button.
for category pages
catalog/controller/product/category.php
find
Code: Select all
$this->data['continue'] = HTTP_SERVER . 'index.php?route=common/home';
same principle for the product file, and any other that has a continue button.
I use:
which presents a button which has the same effect as clicking Back in the browser.
It works fine but I think there may be a more elegant way using route=
Code: Select all
<a href="javascript:history.go(-1)" onMouseOver="self.status=document.referrer;return true" class="button"><span>Continue</span></a>
It works fine but I think there may be a more elegant way using route=
Free v1.4.9 Extensions: Default Specials | Improved Search | Customer Activity Report | Customer Groups | Royal Mail With Handling | Improved Product Page | Random Products | Stock Report | All Products
Hi All,
Thanks for your feedback...
What i needed was more of what was suggested by fido-x in the post from the link below:
http://forum.opencart.com/viewtopic.php ... 7&start=40
Of course the only problem is, I don't know how to change the code to do this exact same thing in 1.4.9.3 file (the post by fido-x was made in 2008, so a fairly old version with very different code).
Thanks for your feedback...
What i needed was more of what was suggested by fido-x in the post from the link below:
http://forum.opencart.com/viewtopic.php ... 7&start=40
Of course the only problem is, I don't know how to change the code to do this exact same thing in 1.4.9.3 file (the post by fido-x was made in 2008, so a fairly old version with very different code).
I think I understand this code to work from the 'continue shopping', what about all the other information pages which have a continue button?SXGuy wrote:I dont think its as easy as redirecting someone to the last viewed product, but i can tell you where the info is, and you can change it accordingly to your liking.
for category pages
catalog/controller/product/category.php
find
replace route=common/home to something else you wish, like perhaps a category pageCode: Select all
$this->data['continue'] = HTTP_SERVER . 'index.php?route=common/home';
same principle for the product file, and any other that has a continue button.
If you use this code for the "continue" button, what will happen if you have an information page which is long and it has say a second page of reading? If the reader clicks on the 'continue' button what happens? Will the reader then be taken to the 'home' page or will the reader see page two of what they were reading?
Will this code have to be done on each and every information page 'continue' button or will it work globally? Do you see what I'm asking?
Who is online
Users browsing this forum: Baidu [Spider] and 33 guests