News:

Support the VirtueMart project and become a member

Main Menu

product with a multiple choice

Started by messapico, March 28, 2012, 11:55:11 AM

Previous topic - Next topic

messapico

Hello to everybody,
I need to know the way to add a multiple choice to a product like this:
- 10 pieces € 3,00
- 15 pieces € 2,80
- 20 pieces € 2,50

it's important to me that this informations become the principal prices, because this reason I need also to know how can I exclude the default price of the product.

Another question; is it possible to erase the quantity buttons (-/+) in the product schedule?

I'm waiting for you!

Regards
Mess

PRO


messapico

Hi BanquetTables.pro,


Product Unit
<?php echo $this->product->product_unit ?> is the line code that control the quantity box?

components\com_virtuemart\views\productdetails\tmpl is the path where I found default.php?

Thanks

PRO

/components/com_virtuemart/views/productdetails/tmpl/default_addtocart.php


<?php // Display the quantity box  ?>
                  <!-- <label for="quantity<?php echo $this->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 js-recalculate" name="quantity[]" value="<?php if (isset($this->product->min_order_level) && (int) $this->product->min_order_level > 0) {
    echo $this->product->min_order_level;
} else {
    echo '1';
} ?>" />
       </span>
       <span class="quantity-controls js-recalculate">
      <input type="button" class="quantity-controls quantity-plus" />
      <input type="button" class="quantity-controls quantity-minus" />
       </span>
       <?php // Display the quantity box END ?>


http://forum.virtuemart.net/index.php?topic=95559.msg314925#msg314925


messapico

Thank you for your time, It's a pleasure to talk in a forum with helpful people like you.
I'd like to know if the plugin that you suggested let me put the different choices of price without the default product price, or in other way if is possible to bypass the default price from the process because at this moment I must add this value and is added automatically to one of the values ​​that I have tried to achieve by custom fields.

Mess

PRO

Quote from: messapico on March 28, 2012, 16:28:40 PM
Thank you for your time, It's a pleasure to talk in a forum with helpful people like you.
I'd like to know if the plugin that you suggested let me put the different choices of price without the default product price, or in other way if is possible to bypass the default price from the process because at this moment I must add this value and is added automatically to one of the values ​​that I have tried to achieve by custom fields.

Mess

I dont know what you are asking here.


PRO

the link you gave me seems to be just hiding the price, and using product attributes