Author Topic: Continue link  (Read 346 times)

roman5527

  • Jr. Member
  • **
  • Posts: 136
Continue link
« on: December 04, 2018, 17:31:19 pm »
Hi, how i can change continue link to category page where is the ordered product? so that the user continues to view the products where they stopped?

thanks

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27096
  • Always on vacation
    • Jenkin Hill Internet
Re: Continue link
« Reply #1 on: December 04, 2018, 17:38:27 pm »
Edit and override components/com_virtuemart/views/cart/tmpl/padded.php
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.3.9989 on Joomla 3.9.1 PHP 7.0.32
Testing VM 3.4.3.9993 on Joomla 3.9.1

roman5527

  • Jr. Member
  • **
  • Posts: 136
Re: Continue link
« Reply #2 on: December 04, 2018, 17:58:14 pm »
Thank you for your response. I know the need to change this file. I soon wonder what to change to make the customer return to the category where he ended because it now returns to the first site of the category. well thank you

roman5527

  • Jr. Member
  • **
  • Posts: 136
Re: Continue link
« Reply #3 on: December 05, 2018, 09:54:41 am »
Example : in category I have 10 pages. i click to product in page 7 . i add product to the cart and when i click to continue button i want go back to page 7 in category , no first page.
can you any idea how change padded.php file for this solution ? thanks

roman5527

  • Jr. Member
  • **
  • Posts: 136
Re: Continue link
« Reply #4 on: December 07, 2018, 11:43:08 am »
Hi, any idea ? thanks

Ventsi Genchev

  • Jr. Member
  • **
  • Posts: 219
    • Bulgarian Computer Store
Re: Continue link
« Reply #5 on: December 07, 2018, 11:46:18 am »
Change:
Code: [Select]
echo '<a class="continue_link" href="' . $this->continue_link . '" >' . vmText::_('COM_VIRTUEMART_CONTINUE_SHOPPING') . '</a>';
With:
Code: [Select]
echo '<a class="continue_link" href="' . $this->close_facebox . '" >' . vmText::_('COM_VIRTUEMART_CONTINUE_SHOPPING') . '</a>';
No pain, no gain, no site!

roman5527

  • Jr. Member
  • **
  • Posts: 136
Re: Continue link
« Reply #6 on: December 07, 2018, 11:58:09 am »
Hi, Ventsi Genchev . Thank you for your answer . But this code stay on product page .

I want go back to page in category , but no on first , but n page where is this product.

do you have any idea for this solution ? many thanks

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8556
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Continue link
« Reply #7 on: December 07, 2018, 12:53:28 pm »
It is hard to do ..  if u are on a product page who knows what route u took to get there

fine .. we can know the cat but how would u know the pagination page?
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Ventsi Genchev

  • Jr. Member
  • **
  • Posts: 219
    • Bulgarian Computer Store
Re: Continue link
« Reply #8 on: December 07, 2018, 13:00:46 pm »
Hi, Ventsi Genchev . Thank you for your answer . But this code stay on product page .

I want go back to page in category , but no on first , but n page where is this product.

do you have any idea for this solution ? many thanks

The code I showed you closes the window and stays on the same page.
To go back to the category on the same page, you have a "Back to: category name" button. Or the "back" button in the browser.

Why do you think the user does not want to stay on the same page? What if he wants to see something else in the product?
No, he has to leave because there is no more work on this page?
No pain, no gain, no site!

roman5527

  • Jr. Member
  • **
  • Posts: 136
Re: Continue link
« Reply #9 on: December 07, 2018, 14:20:13 pm »
Hi, my client want this solution.

back to category link is link to first page in category but I want page where is product .

example : product is in category page on 5 page . after click to continue link i want go back to 5 page in category.

do you have any idea for this solution ? tahnks

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8556
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Continue link
« Reply #10 on: December 07, 2018, 15:53:10 pm »
as explained... how?

pagination is a dynamic thing that can vary on every load! .. filtering, ordering etc..
and how do u know the user came from product x page 5??

It is a fairly nonsensical request from your client...  you should enlighten them
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27096
  • Always on vacation
    • Jenkin Hill Internet
Re: Continue link
« Reply #11 on: December 07, 2018, 16:42:34 pm »
If you want to see how VM will always go back to the first page of a category because a simple return is not possible,  just try selecting the product details of a product on (for example) page 3. From the product details page click on the return to category link - and see where you end up.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.3.9989 on Joomla 3.9.1 PHP 7.0.32
Testing VM 3.4.3.9993 on Joomla 3.9.1

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1794
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: Continue link
« Reply #12 on: December 08, 2018, 00:36:45 am »
I do not get it, clicking back button in browser takes me back to the page I was before. This should be easy to do, I think. Have not tried, but this could work:
Code: [Select]
<button onclick="goBack()">Go Back</button>

<script>
function goBack() {
    window.history.back();
}
</script>

Jörgen @ Kreativ Fotografi
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8556
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Continue link
« Reply #13 on: December 08, 2018, 11:08:10 am »
No Jörgen,

what he means is that if he is on the prod detail page having come from anywhere or even from e.g. shoes - page 5 of a paginated category he wants the continue button to go back paginated page 5 shoes.
If he came from there then a JS return will work but in all other circumstances I assume u will land on PAGE 1 of shoes

The paginated pages are set in stone, they vary all the time depending on filters, orders, direction, products per page etc so is simply not possible without a complex query to find the product and what page it would appear on taking into account all the above variables
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27096
  • Always on vacation
    • Jenkin Hill Internet
Re: Continue link
« Reply #14 on: December 08, 2018, 16:54:30 pm »
Jörgen I just tried using that JS in padded.php on one of my development sites using Spyros' Hera template and it did return the shopper to the correct category page with the correct product on it. I can see that it probably wont work in all cases but maybe is the simplest "solution". 
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.3.9989 on Joomla 3.9.1 PHP 7.0.32
Testing VM 3.4.3.9993 on Joomla 3.9.1