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

Random, Latest & Featured Products

Started by veiliance, May 22, 2013, 14:34:36 PM

Previous topic - Next topic

veiliance

Hi Guys

So i have a few questions regarding the random product module (Random, latest / Featured ) hopefully you guys can virtually slap me in the face and make me do the biggest facepalm but it will be worth it i have lost too many nights of sleep over these issues!.

So i just wanted to know why if i click on the module being displayed it takes me to a blank page  >:(  :o  ??? :0!!! like why not take me to the product page?

And secondly how would i edit the add to cart button as it has quantity buttons and i do not want those there!!

Regaards
Veiliance ;D



MaryB

Hi Veiliance,

No idea about the blank page, mine takes me to the product details page. If you want to remove the quantity buttons, that would be in the helper.php file in the modules/mod_virtuemart_products folder. Open helper.php in a plain text editor, and find these lines:


                       // Display the quantity box
                        ?>
<!-- <label for="quantity<?php echo $product->virtuemart_product_id;?>" class="quantity_box"><?php echo JText::_('COM_VIRTUEMART_CART_QUANTITY'); ?>: </label> -->
<span class="quantity-box">
<input type="text" class="quantity-input" name="quantity[]" value="1" />
</span>
<span class="quantity-controls">
<input type="button" class="quantity-controls quantity-plus" />
<input type="button" class="quantity-controls quantity-minus" />
</span>


Comment it out like this:



<!-- <span class="quantity-box">
<input type="text" class="quantity-input" name="quantity[]" value="1" />
</span>
<span class="quantity-controls">
<input type="button" class="quantity-controls quantity-plus" />
<input type="button" class="quantity-controls quantity-minus" />
</span> -->


Save and upload the file.

OR, so it won't be overwritten during an update, you can clone the module, and edit the cloned file the same way.

Hope this helps!
:D Mary