News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Problem with Cart

Started by robin466, July 06, 2016, 09:51:19 AM

Previous topic - Next topic

robin466

Hi everyone,

i hope someone can help me, i have a problem with my cart. when  i place a item in cart the pop up comes and tell's me that the product has been placed in the cart.
when i press go to chart (Dutch: mandje) i go to a cart but not the one with the good template.
because i use different templates for website and for joomla (because i have a dark main template). so i made a menu (hidden) in joomla with the right template override.
and that should take over the Cart. And if you see the webshop( http://www.rn-motoren.nl/index.php/webshop-1 )  on the right side there is a module named 'winkelwagen' if you press that one you come at the right page. but in the popup you come at the wrong

does anyone know what to do ?  i placed links down below to make  it extra clear.


joomla version : 3.5.1
VM version : 3.0.10

Link of the cart being showed : http://www.rn-motoren.nl/index.php?option=com_virtuemart&view=cart
Cart layout that actually should be showed : http://www.rn-motoren.nl/index.php/winkelwagen


hope to hear from anyone soon

robin466

#1
<a class="showcart floatright" href="http://www.rn-motoren.nl/index.php?option=com_virtuemart&amp;view=cart">mandje</a>

i think i need to change this link to:

<a class="showcart floatright" href="http://http://www.rn-motoren.nl/index.php/winkelwagen">mandje</a>


but where can i find this...

i allready took a look at /com_virtuemart/Views/Cart/padded.php

but nothing changed

GJC Web Design

if this works then good

padded is correct


$newcartlink = 'http://http//www.rn-motoren.nl/index.php/winkelwagen';

echo '<a class="continue_link" href="' . $this->continue_link . '" >' . vmText::_('COM_VIRTUEMART_CONTINUE_SHOPPING') . '</a>';
echo '<a class="showcart floatright" href="' . $newcartlink . '">' . vmText::_('COM_VIRTUEMART_CART_SHOW') . '</a>';
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

robin466

First of all Thank you verry much !

Okay i put it in Padded.php

like this :

<?php
/**
*
* Layout for the add to cart popup
*
* @package   VirtueMart
* @subpackage Cart
* @author Max Milbers
*
* @link http://www.virtuemart.net
* @copyright Copyright (c) 2013 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* @version $Id: cart.php 2551 2010-09-30 18:52:40Z milbo $
*/

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');

$newcartlink = 'http://http//www.rn-motoren.nl/index.php/winkelwagen';

echo '<a class="continue_link" href="' . $this->continue_link . '" >' . vmText::_('COM_VIRTUEMART_CONTINUE_SHOPPING') . '</a>';
echo '<a class="showcart floatright" href="' . $newcartlink . '">' . vmText::_('COM_VIRTUEMART_CART_SHOW') . '</a>';
if($this->products){
   foreach($this->products as $product){
      if($product->quantity>0){
         echo '<h4>'.vmText::sprintf('COM_VIRTUEMART_CART_PRODUCT_ADDED',$product->product_name,$product->quantity).'</h4>';
      } else {
         if(!empty($product->errorMsg)){
            echo '<div>'.$product->errorMsg.'</div>';
         }
      }

   }
}





but now the page brings me to : http://www.rn-motoren.nl/index.php?option=com_virtuemart&view=cart   

where  is no Cart  only hyperlink with text : "continue shopping"  and "Cart"  (actually the same as the popup)  when i now click at Cart  i am directed to the Good page. (http://www.rn-motoren.nl/index.php?option=com_virtuemart&view=cart&Itemid=233)



So we fixed that... but how to fix this new problem ??

robin466

i will put some screenshots in this post to make it clear !

So after 2 times pressing mandje  you'll be transfert to the correct page...

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

robin466

That's true what you say but that isn't the problem... the problem is that there is a page between the popup  and the cart.

please take a look at the attachments, i will explain what happens per photo : 

so when i press go to chart (photo1 )
i am directed to another page  (photo2) where i have to press go to cart again,

to finally come at the cart on (photo3)


i want to lose the second step  so that i can go from photo 1 directly to photo 3 !

GJC Web Design

I simply don't see how there can be an intermediate page... a link is a link is a link
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

robin466

#8
well, try it your self http://www.rn-motoren.nl/index.php/webshop-1 ( i'll give you the log in )  put something in cart (mandje / winkelwagen)  and when the pop up comes press "mandje" then you'll see what i mean !

the good page should be : http://www.rn-motoren.nl/index.php/winkelwagen  and you should go there directly

mrmysterious

#9
Hello,

Sorry to interfere here. I know I am a beginner myself. But the problem seems similar to that what I had described in that thread.
http://forum.virtuemart.net/index.php?topic=134819.0
And it's about the modal pop-up window.

As I realized when you put an item in the cart and click in the pop-up: "Show cart" it links to the following (in my case):
http://www.geliefert.reviewinghiv.org/index.php?option=com_virtuemart&view=cart

which is - as far as I can see - not the cart itself BUT a preview of that embeded in index.php.

In my case the cart itself shows only after I refresh the product quantity (delete the product) - then the adress changes to:
Quotehttp://www.geliefert.reviewinghiv.org/index.php/cart

Only now this is the real site for the cart. If you deactivate pop-up (which should not be a solution) you should go there directly.

Still I don't know why and for what reason the pop-up can't link to:
http://www.geliefert.reviewinghiv.org/index.php/cart

directly.

Cheers,
mrm


Joomla!-Version 3.8.5
VirtueMart 3.2.12
Template As002053free (customized)
OS Linux h
PHP 5.6.30
MySQL 5.6.19-67.0-log