Author Topic: No Continue Shopping Link - SOLVED  (Read 12551 times)

chrislkirby

  • Beginner
  • *
  • Posts: 1
No Continue Shopping Link - SOLVED
« on: May 24, 2009, 22:40:26 pm »
joomla 1.5
virtuemart 1.1.3

The "continue shopping" link was missing from the view cart page. However, when I clicked on "cart" from the lightbox window after adding a product, "continue shopping" was there.

Here is what I did to solve it:

in /components/com_virtuemart/themes/default/templates/pages

edit shop.cart.tpl.php

Near line 35 you will see the following:
---------------------
<?php
 if( $continue_link != '') {
      ?>
       <a href="<?php echo $continue_link ?>" class="continue_link">
          <?php echo $VM_LANG->_('PHPSHOP_CONTINUE_SHOPPING'); ?>
       </a>
      <?php
---------------------

Simply add:

$continue_link = '/store'; //Path to your store

above the line so mine looks like this now:

 <?php
    
    $continue_link = '/store';
    
    if( $continue_link != '') {
      ?>
       <a href="<?php echo $continue_link ?>" class="continue_link">
          <?php echo $VM_LANG->_('PHPSHOP_CONTINUE_SHOPPING'); ?>
       </a>
      <?php


I hope this works for others as it did for me!


lisa81

  • Beginner
  • *
  • Posts: 3
Re: No Continue Shopping Link - SOLVED
« Reply #1 on: August 28, 2009, 17:59:27 pm »
Hi,
I've been looking for this for quite a while, and bingo ! Except that it does not quite work for me at this point. I'm not sure how to set the path to my store .. ??

Working local, this is how the shop front page seems to be identified ..
http://localhost/BLABLA/index.php?option=com_virtuemart&Itemid=44

so, would it be
$continue_link = '/store'; //BLABLA/index.php?option=com_virtuemart&itemid=4;

???

Thanks for your help


Lisa


shafee85

  • Beginner
  • *
  • Posts: 10
Re: No Continue Shopping Link - SOLVED
« Reply #2 on: September 01, 2009, 06:09:34 am »
I had the same Exact issue and chrislkirby's post helped me sort it :) Thank you!

What the newly added continue_link does is create a link to where ever you want the customer to direct to when they click the 'continue shopping' link that shows up in your cart. if your products are located at www.yoursite.com/store all you need to is add the following line like chrislkirby said.

$continue_link = '/store';



 

lisa81

  • Beginner
  • *
  • Posts: 3
Re: No Continue Shopping Link - SOLVED
« Reply #3 on: September 01, 2009, 13:55:18 pm »
Ok, thanks a lot, this is about what I understood at first, but my problem is to write it properly, so that it gets to the shop front page, which is in a virtuemart component. Does not seem to work with the local server page reference
$continue_link = '/store';//http://localhost/BLABLA/index.php?option=com_virtuemart&Itemid=44;, nor to the main index.
maybe I'm missing a ";" of ">" or something else ..
Would you mind copying that line as it appears for you ? (or sending it to lis81@orange.fr", if you do not want to post it here ..
 
I'd be most grateful.

Lisa

plusangel

  • Beginner
  • *
  • Posts: 1
Re: No Continue Shopping Link - SOLVED
« Reply #4 on: November 19, 2009, 18:59:39 pm »
working great...

I added

Code: [Select]
$continue_link = '/';
and when I click i go to the home page

thanks :)

sjc

  • Beginner
  • *
  • Posts: 6
Re: No Continue Shopping Link - SOLVED
« Reply #5 on: December 01, 2009, 12:59:40 pm »
Hello have been trying to do the same - have managed to link to home page from "view cart" but would like to return to the page that the buyer was on - the continue shopping link goes back to correct page after buyer has added to cart, but not from the view cart link?

have tried all sorts between ' and ' in the  $continue_link = '';

but cannot get it to go back to last page buyer was on????

Any thoughts gratefully received.

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3510
  • VirtueMart Version: 3.8.9
Re: No Continue Shopping Link - SOLVED
« Reply #6 on: May 21, 2010, 21:35:28 pm »
This is a neater non hard page coded solution

http://forum.virtuemart.net/index.php?topic=63536.0
Regards
A

Joomla 3.9.27
php 7.4

lollov

  • Beginner
  • *
  • Posts: 5
Re: No Continue Shopping Link
« Reply #7 on: July 15, 2010, 21:50:40 pm »
Hi
I am trying all sort of variations of your solutions, but no "Continue Shopping" link (or button) show on my cart page. There are no differences with the 2 or 3 solutions you provide in the forum. My code now, under the cart section, looks like this:

if ($cart["idx"]) {
    ?>
   <div class="cart-checkout-bar">
    <?php
   
   $continue_link = '/';
   
    if( $continue_link != '') {
      ?>
       <a href="<?php echo $continue_link ?>" class="continue_link">
          <?php echo $VM_LANG->_('PHPSHOP_CONTINUE_SHOPPING'); ?>
       </a>
      <?php
    }
       
   if (!defined('_MIN_POV_REACHED')) { ?>

       <span style="font-weight:bold;"><?php echo $VM_LANG->_('PHPSHOP_CHECKOUT_ERR_MIN_POV2') . " ".$CURRENCY_DISPLAY->getFullValue($_SESSION['minimum_pov']) ?></span>
       <?php
   }
   else {
         $href = $sess->url( $_SERVER['PHP_SELF'].'?page=checkout.index&ssl_redirect=1', true);
         $href2 = $sess->url( $mm_action_url . "/index2.php?page=checkout.index&ssl_redirect=1", true);
         $class_att = 'class="checkout_link"';
         $text = $VM_LANG->_('PHPSHOP_CHECKOUT_TITLE');
       
         if( $this->get_cfg('useGreyBoxOnCheckout', 1)) {
            echo vmCommonHTML::getGreyBoxPopupLink( $href2, $text, '', $text, $class_att, 500, 600, $href );
         }
         else {
            echo vmCommonHTML::hyperlink( $href, $text, '', $text, $class_att );
         }
    }
   ?>
   </div>
   
   <?php
   // End if statement
}
?>

My question is if there is any othe parameter to set for this, I am new to Virtuemart?

Right now, I only have the "Checkout" button showing, and would like a continue shopping button as well.
Thanks

Gambalunga

  • Beginner
  • *
  • Posts: 31
Re: No Continue Shopping Link - SOLVED
« Reply #8 on: January 14, 2011, 12:14:43 pm »
I am using VM 1.1.6 but a theme which comes from an older version.

I found the file shop.cart.tpl.php  in my theme was out of date the current version is 1712 2009-03-30

The new version (if using VM 1.1.6) can be copied from ../components/com_virtuemart/themes/default/templates/pages/shop.cart.tpl.php to ../components/com_virtuemart/themes/your_theme/templates/pages/shop.cart.tpl.php

Alternatively at line 27 of ../components/com_virtuemart/themes/your_theme/templates/pages/shop.cart.tpl.php
enter the following code from the default theme:
Code: [Select]
// show Continue Shopping link when the cart is empty
if ($cart["idx"] == 0) {
    ?>
    <?php
      
if( $continue_link != '') {
       
?>

        <a href="<?php echo $continue_link ?>" class="continue_link">
       <?php echo $VM_LANG->_('PHPSHOP_CONTINUE_SHOPPING'); ?>
        </a>
       <?php
    
}
    else {
      
$continue_link=$sess->url($_SERVER['PHP_SELF'].'?option=com_virtuemart' ); 
    
?>

    <a href="<?php echo $continue_link ?>" class="continue_link">
    <?php echo $VM_LANG->_('PHPSHOP_CONTINUE_SHOPPING'); ?>
    </a>
    <?php
    
}

After this, if you want the Continue Shopping button/link to always appear in the cart, when there is something in it, at the following code
Code: [Select]
if ($cart["idx"]) {
    ?>
    <div align="center">
    <?php
      
if( $continue_link != '') {
       
?>

        <a href="<?php echo $continue_link ?>" class="continue_link">
       <?php echo $VM_LANG->_('PHPSHOP_CONTINUE_SHOPPING'); ?>
        </a>
       <?php
    
}

replace it with
Code: [Select]
if ($cart["idx"]) {
    ?>
    <div align="center">
    <?php
      
if( $continue_link != '') {
       
?>

        <a href="<?php echo $continue_link ?>" class="continue_link">
       <?php echo $VM_LANG->_('PHPSHOP_CONTINUE_SHOPPING'); ?>
        </a>
       <?php
    
}
    else {
      
$continue_link=$sess->url($_SERVER['PHP_SELF'].'?option=com_virtuemart' ); 
    
?>

    <a href="<?php echo $continue_link ?>" class="continue_link">
    <?php echo $VM_LANG->_('PHPSHOP_CONTINUE_SHOPPING'); ?>
    </a>
    <?php
    
}
This adds the else statement which will provide the Continue shopping button in the same manner as for the empty cart.

I hope this helps.
I thought I had retired but now I have discovered I am just tired

aquapixel

  • Beginner
  • *
  • Posts: 8
Re: No Continue Shopping Link - SOLVED
« Reply #9 on: February 19, 2011, 05:35:57 am »
Thanks so much for this!
Ive been trying to figure this out all day

Both chrislkirby solution and Hutson's suggestion work fine for me
 :)