Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Responsive Joomla Virtuemart Template - LightMart (SKU# FLEX-00012)

TOPIC: 2 issues with template

2 issues with template 10 years 1 month ago #8675

Hi,

I am having 2issues with my template, I have done alot of customization on the template, but not sure that the customization messed it up, as it was working before...

1) When you click on preview, and then add to cart, the continue shopping and view cart buttons show in the pop up instead of refreshing the page: engenoxford.co.za/index.php?option=com_virtuemart&view=category&virtuemart_category_id=42&Itemid=181 (click on preview of any of the products and then try add the product to the cart... when you click on continue shopping or view cart, it displays it in the product pop up.)

2) when you click on more info, the enlarge image button doesn't work.

I have tried to look through the forum, but the fixes haven't worked.

Please assist

engenoxford.co.za/
The administrator has disabled public write access.

2 issues with template 10 years 1 month ago #8690

Hi,

Problem 1:
Find this PHP file:
/components/com_virtuemart/views/cart/tmpl/padded.php

and copy-paste that PHP file to here:
/templates/flexible_lightmart/html/com_virtuemart/cart/padded.php

(this process is called "template overriding" to protect your modification against Virtuemart updates. You can directly open the file from /components/ folder and do the modification. But using template overriding is always more reliable)

then within the copy-pasted PHP file:
/templates/flexible_lightmart/html/com_virtuemart/cart/padded.php


Find these 2 lines:
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>';

And change them with these: (add target="_parant" attribute to links)
echo '<a target="_parent" class="continue" href="' . $this->continue_link . '" >' . JText::_('COM_VIRTUEMART_CONTINUE_SHOPPING') . '</a>';
echo '<a target="_parent" class="showcart floatright" href="' . $this->cart_link . '">' . JText::_('COM_VIRTUEMART_CART_SHOW') . '</a>';

the the "continue shop" and "View Cart" links will open in the "Parent" window which is the main window, instead of modal popup window.

Problem 2:
I guess you have solved it already as i don't see the problem anymore in the product details page.

You should have removed the
.main-image img {
   max-height:200px;  <--- or what ever fixed value it is. Just eliminate it.
}

CSS rule from:
/components/com_virtuemart/assets/css/vmsite-ltr.css


Regards,
Support
Last Edit: 10 years 1 month ago by Support.
The administrator has disabled public write access.
Time to create page: 0.128 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo