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

TOPIC: Stock variant custom field

Stock variant custom field 10 years 7 months ago #6417

If I use no custom fields or the generic child field then I get the nice add to cart button that comes with this template.

If I use the stock variant plugin for custom fields then the template "default_addtocart.php" momentarily loads and then it is replaced by the default "default_addtocart.php" from the virtuemart basic template.

Any help appreciated
The topic has been locked.

Stock variant custom field 10 years 7 months ago #6418

To see an example please login to private area of my site at login below and then click "Proshop" in menu. You will see three products. Please check the "add to cart" button for each

Many thanks

www.teamtbb.com/login

user:test
password:test1
Last Edit: 10 years 7 months ago by Rupert Griffiths.
The topic has been locked.

Stock variant custom field 10 years 7 months ago #6421

I've been looking into this over the weekend and can confirm it is to do with lines 22 - 56 in default_addtocart.php in the Cleanmart template.
These lines seem to control the ajax loading and styling.

I think I am confusing it by using child products but using a stockable variant plugin for the custom fields instead of the generic child which is ajax loaded.

If I remove this section of code then I get the correct button but I lose the options. If I leave it in I have the options but a weird green buttons (ie. classes like "FlexibleCSS3Button" have been removed through jquery)

It can't be hard to resolve this but my coding is not up to it so please help.

Thanks
Last Edit: 10 years 7 months ago by Rupert Griffiths.
The topic has been locked.

Stock variant custom field 10 years 7 months ago #6447

Hi,

Literally, CleanMart doesn't support "VM - Custom, stockable variants" plugin. Because once it gets used, Virtuemart loads the original add to cart button. This has nothing to do with the default_addtocart.php, the add to cart button gets printed with JS lines. So, the modification should be made through this file

/plugins/vmcustom/stockable/stockable.php

(to get back to FlexibleCSS3Button style):

But modification to this file is considered as "Core hack" and not recommended, would be tough to achieve. I don't think it would work though.

We have implemented AJAX loading for "generic child variant" and we recommend useing this custom field instead. It looks much more cooler with AJAX loading effect and gives more advanced features than "VM - Custom, stockable variants" . So,

- if you have concern about "stocking" then you should use "Generic Child Variant" which lets you upload different product pictures, type different product description, stock number etc.. for each child product. (while creating "generic child variant" custom field, the "parent" should NOT be selected as "orderable")

- If you don't have concern about "stocking" then you should use "Cart Variant" type custom field, which is the simplest way of creating product attributes.

Regards.
Support & Development
The topic has been locked.

Stock variant custom field 10 years 7 months ago #6451

OK, thanks for reply. Yes, stocking very important unfortunately.

YEs I could use the generic child variant but I have found that on the Cleanmart template, even on the demo, that when the Ajax loaded child product loads it is no longer possible to select the number of items although the option presents itself. AND when the add to cart button is clicked on this child product then the user is directed straight to the cart rather than a popup "added to cart" message.

If I could resolve these secondary issues I would be keener to use the generic child variant.

The other advantage of using stockable variants is there is no need to upload images or descriptions to the children as they never display.

Sorry for changing the issue mid post.

I'll probably just use some CSS to style the standard button then - that is ok. Still love the other features of the template
The topic has been locked.

Stock variant custom field 10 years 7 months ago #6461

Hi,

I should correct in one point:
The other advantage of using stockable variants is there is no need to upload images or descriptions to the children as they never display.

The same idea applies for "Generic Child Variant" as well. If you don't touch any thing on the child product, the parent product's information will be used for child as well. Therefore if you don't upload picture to child product, the parent's image will be used for child product(s).

About the problem you talked about. I see it (in our DEMO). it is very unusual situation. It is a problem and must be fixed immediately. I just don't know how possibly this problem hasn't been raised before.

A good news: in the upcoming version of CleanMart, the "VM - Custom, stockable variants" support will be added to CleanMart. Indeed there will be lots of new features as well. Such as; adding one more "product details page layout" and other tweaks and improvement in some sections. The next version of CleanMart will be huge! Hopefully it will be ready to be released this week.

But just for now. You can do what you have said: you can use some CSS rules to get at least nicer add to cart button for "VM - Custom, stockable variants"

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

Stock variant custom field 10 years 7 months ago #6470

Thanks again. Sounds brilliant about the new release!
The topic has been locked.

Stock variant custom field 10 years 7 months ago #6491

I am working day/night on it already. I will available very soon. Only couple more tweaks have left.
I am closing this topic for clearance.

Regards,
Support & Development
The topic has been locked.
Time to create page: 0.077 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