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

TOPIC: Custom Field with Stockable Variants not working p

Custom Field with Stockable Variants not working p 10 years 9 months ago #5495

Hi,

My intention is to create products as described in your tutorial "Custom Field with Stockable Variants" to get the same result as we can see in LIVE DEMO here:
www.flexiblewebdesign.com/forum-virtuemart-2-template-puremart-support/152-tutorial-custom-field-with-stockable-variants

That's exactly what I need, but have followed the tutorial and have mainly three problems:
1. The parent product is not included in the drop-down list.
2. The product image doesn't change when an other item is selected from the dropdown list.
3. In the LIVE DEMO I can see that the "Add to cart" button doesn't appear until you select a product variant from the dropdown list, but that's not working in my case. Please see attachment: dl.dropboxusercontent.com/u/36778840/stockvariable-product.jpg

The site is offline at the moment that's why I can't post a link, but could PM you some access details.

Would appreciate any help with this issue as I can't see what I'm doing wrong.

Thanks,
Maria

Joomla 2.5.11
VirtueMart 2.0.22
PureMart 3.6
Last Edit: 10 years 9 months ago by Maria Fernandez.
The topic has been locked.

Custom Field with Stockable Variants not working p 10 years 9 months ago #5554

Still waiting... more than 60 hours now...
The topic has been locked.

Custom Field with Stockable Variants not working p 10 years 9 months ago #5561

Sorry - your post was missed...

I have passed the details to the boss who knows more about this than I but I would point out..
This has NOTHING to do with our templates .. this is standard Virtuemart - we make templates - we don't change the core functions of Virtuemart....

To work out the various configuration possibilities is just a matter of experimentation because as you will have found the documentation of VM2.0 is appalling...

The boss provided the tutorial as a service and I can only assume if you follow it it works... I assume if he has some time he may be able to help you -

Cheers
The topic has been locked.

Custom Field with Stockable Variants not working p 10 years 9 months ago #5565

Hi John,

Thanks anyway, I hope the boss has got a minute to look on this, can't remember how many times I went through the tutorial and followed the steps one by one again and again.

Surely I'm missing something, but don't know what.

Regards,
Maria
The topic has been locked.

Custom Field with Stockable Variants not working p 10 years 9 months ago #5570

You'll probably get more/better help on the VM forums - this stuff is core VM

Cheers
The topic has been locked.

Custom Field with Stockable Variants not working p 10 years 9 months ago #5606

Hi Maria, the "VM - Custom Field, stockable variants" won't give you the option to change the product picture. Because that plugin is not capable to do it. (it is a Virtuemart thing, not us).

What you need is "Generic Child Variant". You will get a look of this product:

www.flexiblewebdesign.com/virtuemart-2-template-puremart/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=50&virtuemart_category_id=6

At first, there is no "add to cart" button, because you need to select a product variant. One you select a product variant, the product picture gets changed, and (depends on the stock info) the add to cart button appears (or the "notify me" button appears). This is a better and more professional way to build a product with variant.

Since "child products" get involved, you will be able to keep the stock, and additionally you will be able to add different product picture to each product variant. So all in all, using "generic child variant" is the best.

Use "Generic Child Variant" always and forget about the "VM - Custom Field, stockable variants".
I haven't created a tutorial for "Generic Child Variant" to get the same look as we have in the DEMO but i will do it soon. You can play around and try to get the same look though. It is not that hard, furthermore, you can take a look at the forum.virtuemart.net or search it through google. I am sure somebody has explained with screenshots how to create "Generic Child Variant" type custom fields. (The procedure of creating Generic Child Variant custom field would be the same with or without PureMart)

There is one thing you need to remember, while creating the custom field, you should:
ENABLE: Display parent as option
DISABLE: Parent orderable

So, parent product won't be purchasable, because it is a parent and it exist to be appeared in the "category browse page". If you have experience with more professional eCommerce software, (like: Amazon Seller Center) they follow the same procedure, the parent products are always "not order-able". Try to open any clothing product from amazon.com, you won't be able to add the product to cart without choosing the "size" or "color" variant. This is the only way to make it user friendly.

I found this website below just now. check it out, it provides screenshots about how to create "Generic Child Variant"
cocoate.com/vm2/product-attributes-custom-fields
And look at the section of "Creating the t-shirt products". Very usefull and easy to understand.

Regards.
Support & Development
Last Edit: 10 years 9 months ago by Support.
The topic has been locked.

Custom Field with Stockable Variants not working p 10 years 9 months ago #5609

Hi,

Thank, that's all I needed. As I can see my problem was to not understand correctly when to use Stockable variants Generic Child Variant. It's a bit confusing, but obviously tha's not your fault.

I've followed the cocoate tutorial and that's it, problem solved. Thanks again to clarify this to me.

I would like to ask you a last question. I have created a "Specification" tab on the product detail page. Who can this tab be visible first, rather then the "Description" tab as it is by default.

Thanks very much for your help,
Maria
The topic has been locked.

Custom Field with Stockable Variants not working p 10 years 9 months ago #5617

Hi Marie,

there are a couple of posts about changing the order of tabs etc

see e.g.

www.flexiblewebdesign.com/index.php?option=com_kunena&view=topic&catid=18&id=1121&Itemid=234

basically -> move the <li class="selected"> to what ever tab you want first
The topic has been locked.

Custom Field with Stockable Variants not working p 10 years 9 months ago #5632

Hi John,

Right, I've done that. The tabs where moved ok and <li class="selected"> aswell. But the Specification tab is still showing by default the Description content. Only if you click on the Specification tabs than the proper content appear.
I code I've got now is the following:
<ul id="FlexibleProductDetails" class="shadetabs">
		<?php if (!empty($this->product->customfieldsSorted['ontop'])) { ?>
		<li class="selected"><a href="javascript:void(0)" rel="#SpecificationsBottom"><span><?php echo $params->get('productdetails_specs','Specifications'); ?></span></a></li>
		<?php } ?> 
		<?php if (!empty($this->product->product_s_desc)) { ?>	
		<li><a href="javascript:void(0)" rel="#1product_s_desc"><?php echo JTEXT::_('COM_VIRTUEMART_PRODUCT_DESC_TITLE');?></a></li>
		<?php } ?>
        <?php if (!empty($this->product->customfieldsRelatedProducts)) { ?>
            <li><a href="javascript:void(0)" rel="#3relatedproducts"><?php echo JText::_('COM_VIRTUEMART_RELATED_PRODUCTS'); ?></a></li>
		<?php } ?> 
 
</ul>
<div id="FlexibleProductDetailsID">
	<?php
    if (!empty($this->product->customfieldsSorted['ontop'])) { ?>
    <div id="SpecificationsBottom" class="FlexibleProductTABDetails"  style="display:none;">
	<?php $this->position='ontop';
		echo $this->loadTemplate('customfields'); ?>
        <div class="clear"></div>
    </div>
	<?php } // Product Custom ontop end
    ?>
    <?php if (!empty($this->product->product_s_desc)) { ?>
    	<div id="1product_s_desc" class="FlexibleProductTABDetails">
			<div class="product-short-description">
			<?php /** @todo Test if content plugins modify the product description */
			echo $this->product->product_s_desc; ?>
			</div>    	  
		</div>
    <?php } // Product Short Description END?> 
    <?php if (!empty($this->product->customfieldsRelatedProducts)) { ?>
		<div id="3relatedproducts" class="FlexibleProductTABDetails FlexibleProductTABRelated" style="display:none;">
 
		<?php echo $this->loadTemplate('relatedproducts');	?>
        <div class="clear"></div>
		</div>
	<?php } // Product customfieldsRelatedProducts END?>
</div>

Is this code ok for what I want?

Thanks again for all your help
Maria
The topic has been locked.

Custom Field with Stockable Variants not working p 10 years 9 months ago #5633

you need to remove the display none

<div id="SpecificationsBottom" class="FlexibleProductTABDetails" style="display:none;">

and add it to the prod desc div

cheers
The topic has been locked.

Custom Field with Stockable Variants not working p 10 years 9 months ago #5634

Hi John,

All done. Problem solved.

Thanks again,
Maria
The topic has been locked.

Custom Field with Stockable Variants not working p 10 years 9 months ago #5636

OK - topic closed
The topic has been locked.
Time to create page: 0.097 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