Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • gringo211985 Friend
    #189227

    Hi there,

    I have a weird problem when adding to cart, please see pic below,

    How can I get the “continue shopping” and “view cart” to be under each other instead of displaying weirdly like they do now?


    1. add2cart-prob
    Saguaros Moderator
    #500589

    Hi gringo211985,

    Sorry for this late response, somehow I missed this thread.

    For the issue of popup add to cart, it seems that VM change something in code, please try opening file: /components/com_virtuemart/views/cart/tmpl/padded.php, at approx line 23, you will see this snippet of code:

    [PHP]
    echo ‘<a class=”continue” href=”‘ . $this->continue_link . ‘” >’ . JText::_(‘COM_VIRTUEMART_CONTINUE_SHOPPING’) . ‘</a>’;
    echo ‘<a class=”showcart floatright” href=”‘ . $this->cart_link . ‘”>’ . JText::_(‘COM_VIRTUEMART_CART_SHOW’) . ‘</a>’;
    if($this->product){
    echo ‘<h4>’.JText::sprintf(‘COM_VIRTUEMART_CART_PRODUCT_ADDED’,$this->product->product_name,$this->product->quantity).'</h4>’;
    }
    [/PHP]

    change to this:

    [PHP]
    if($this->product){
    echo ‘<h4>’.JText::sprintf(‘COM_VIRTUEMART_CART_PRODUCT_ADDED’,$this->product->product_name,$this->product->quantity).'</h4>’;
    }
    echo ‘<a class=”continue” href=”‘ . $this->continue_link . ‘” >’ . JText::_(‘COM_VIRTUEMART_CONTINUE_SHOPPING’) . ‘</a>’;
    echo ‘<a class=”showcart floatright” href=”‘ . $this->cart_link . ‘”>’ . JText::_(‘COM_VIRTUEMART_CART_SHOW’) . ‘</a>’;
    [/PHP]

    Then clean JAT3 cache.

    Give it a try and let me know how it goes.

    Hope this helps 🙂

    gringo211985 Friend
    #500964

    Thanks Saguaros, that worked great! It now shows text on top then add to cart and continue shopping underneath.

    Saguaros Moderator
    #501010

    You’re welcome, mate :laugh:

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  Saguaros 11 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum