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

TOPIC: [SOLVED] parent product gets into basket

[SOLVED] parent product gets into basket 11 years 6 months ago #541

Hi,

Yesterday i bought your template. Looks great. I have a few questions: Is it possible to get rid off the new/sale etc buttons?
A bigger issue is that it's possible to add parent products to the cart after the installation of the the template. For example: Parent is an ampifier available in black and silver finish. I see the black and silver version in the dropdown menu. Before the installation of the template there was a button: "choose a product". After the update there's just a "add to cart" button. When i click it before selecting it's not the product on top of the dropdown menu which gets in the basket but the parent product.

Thanks!

Jan Willem
Last Edit: 11 years 6 months ago by Support.
The topic has been locked.

parent product gets into basket 11 years 6 months ago #547

Hi,

removing new/sale buttons from category browse page requires little coding change in this file:
ROOT/template/yourjoomlatemplate/html/com_virtuemart/category/default.php
(default.php or flexv2.php which ever you are using)

Look for this SPAN TAGs:
<span class="<?php echo $SpecialOrNOT; ?>"></span> <span class="<?php echo $DiscountORnot; ?>"></span> <span class="<?php echo $NEWorOLD; ?>"></span>

And delete them completely. Those badges will be removed completely. BE AWARE, THERE ARE 3 DIFFERENT PLACES IN THE SAME FILE YOU WILL FIND THIS LINE. SO MAKE SURE DELETE ALL 3 OF THEM. (one is for ListView, other is for GridView, tha last one is for MultiGridView)

About your second question, actually i didn't understand. If you give me more specific examples by providing some live URL, then i would understand and provide you a TIP or Solution for it.

Cheers.
Flexible Support Desk.
The topic has been locked.

parent product gets into basket 11 years 6 months ago #552

Thank you for your quick reply!!
This is what happening now. site with template . When you click on "voeg toe" ("add to cart") without selecting an other version of the product you don't get the silver or black version in your cart but the parent product.
Without your template there's a button "choose a product". You can't add the parrent product in the cart.
Joomla 2.5.6
Virtuemart 2.12
Attachments:
The topic has been locked.

parent product gets into basket 11 years 6 months ago #578

Hi,

Did you create those attributes with "child products with stockable variants" plugin?
I will look at it and let you know in here.

Cheers.
The topic has been locked.

parent product gets into basket 11 years 6 months ago #581

Hi,

I just updated our VM Template - PureMArt. It is now ready to use "Child product Custom field, with stockable variants"

Since i am seeing you have used "child product", i assume you want to keep track the "stock" of those variants as well. Otherwise, you can use regular custom field, and you won't need to make all this stuff. Our Template is already ready for it.

So you should follow my steps.

First of you should update your
- Virtuemart (to VM2.0.12)
- Virtuemart AIO (to VM-AIO 2.0.12)
- Our pureMArt (i just emailed your download link to your email address. Reapply our VM Template from scratch.)

then follow the tutorial.
REFER TO THIS PAGE:http://www.flexiblewebdesign.com/forum-virtuemart-2-template-puremart-support/152-tutorial-custom-field-with-stockable-variants

Cheers.
Last Edit: 11 years 6 months ago by Support.
The topic has been locked.

parent product gets into basket 11 years 6 months ago #620

Hi,

Thanks for your reply and solutions. The latest versions of VM and VM were already installed. When I removed your template it worked just as I wanted. I could not add a parent in the cart(button"choose a product" reappears) . I installed the new version and read the manual. Problem is that i don't work with the VM custom stockable variants.



Parent:





Parent product:



Hope these pictures make it a little bit clearer!

Cheers,

Jan Willem
Last Edit: 11 years 6 months ago by Jan-Willem Verbeek.
The topic has been locked.

parent product gets into basket 11 years 6 months ago #621

HI,

I understand what you are saying. But saying something like "when i uninstall your template, everything works" doesn't a good speech. If it was possible, we would implement it ( "choose a product" text instead of "add to cart") to our VM Template as well but then we would need to remove the "add to cart" button from "category browse page". We did it that way, because we don't want to eliminate "add to cart" button from browse page, 'cause people love it. In Official Virtuemart there isn't any "add to cart" button in category browse page.

What i am saying is; instead of using "Generic Child Product" type custom field, use the "VM Custom Field, Stockable Variants" option or regular custom field "integer".

What is your purpose? Do you want to keep track the stock info of those attributes? Why are using "generic child product" custom field?

If you don't care about stocking, then you should use "integer" custom field. Which is much much easier, and you don't even need to add child products. If you want to keep the stock info, then you should use "VM custom Field, stockable Variants" plugin.

Browse this DEMO:
www.flexiblewebdesign.com/virtuemart-2-template-puremart/index.php?option=com_virtuemart&view=category&virtuemart_category_id=6

And see the difference between "generic child variants" and "(Custom Field, Stockable Variants)"
As it is writing in our DEMO:
www.flexiblewebdesign.com/virtuemart-2-template-puremart/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=50&virtuemart_category_id=6

It says in the product description:
This is a TEST product to show you how it will look like if you use Custom Field: Generic Child Variant. In this DEMO, Black is parent product and all others are child products. Black, Grey and Mahogany colors have 1 stock, and Navy/Blue is Out of Stock. But this custom field option is not a convenient way for stocking. Because if the BLACK is out of stock, this product will be marked as "out of stock" in category browse page even though there are some stocks left in other colors. This option is good if you want to show different product pictures for different attributes, and you don't have any concern about stocking.
The topic has been locked.

parent product gets into basket 11 years 6 months ago #623

And this product below has regular custom field, type of custom field is "Cart Variant" and it is "Cart-Attribute":
www.flexiblewebdesign.com/virtuemart-2-template-puremart/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=5&virtuemart_category_id=1&Itemid=474



ScreenShot2012-10-10at2.18.39AM.png


and in the product details page, the attributes are added as:

ScreenShot2012-10-10at2.20.13AM.png
Last Edit: 11 years 6 months ago by Support.
The topic has been locked.

parent product gets into basket 11 years 6 months ago #631

Hi,

Thanks again!
I see my problem. I want a template where you can't order parrent products and can not order directly from the category page. I use parents and children in this way because they are very easy to edit in an Excel sheet. Stock control is going to be important in the future.
Is it possible to change the template so you lose the possiblity to order from the category page and where you can't order parrents anyway( like standard VM). If so, what will be the costs?

Cheers,

Jan Willem
The topic has been locked.

parent product gets into basket 11 years 6 months ago #635

Actually our VM Template - FAshionMArt has exactly what you are looking for already.

Because in that template there is no TINY "add to cart" in the GRID layout, so we have implemented the function you were looking for. (if the parent can't be orderable). The add to cart button changes to "Choose a product variant first".

Browse this DEMO category browse page:
www.flexiblewebdesign.com/virtuemart-2-template-fashionmart/category-layout-version-1

And find the product: Disel Men's T-Shirt
(www.flexiblewebdesign.com/virtuemart-2-template-fashionmart/category-layout-version-1/disel-men-s-t-stary-r-t-shirt-detail)

The parent product is this:
Disel Men's T-Shirt
And it has 3 child products:

White
Brown
Black

Since the parent is set "no order-able" it is exist in the dropdown, but can't be added to cart and add to cart turns out to be "Choose a product variant first".

ScreenShot2012-10-10at9.05.05AM.png


Cheers.
The topic has been locked.

parent product gets into basket 11 years 6 months ago #636

But, if you decide to use this "generic child variant" custom field, YOU SHOULD BE AWARE THAT; parent product MUST be selected as "can't be order-able" because if the parent is orderable; first of all the "add to cart" button will be shown, you won't see the "choose variant first" text and secondly when parent product becomes "out of stock", then product will be marked as "out of stock" in the category browse page even though there are some stocks left in the child products.

Cheers.
The topic has been locked.

parent product gets into basket 11 years 6 months ago #646

Great!! I think I have to change to the fashion mart template although I really like the looks of Pure Mart (specifications tab would be fantastic for our shop !). Is it possible to buy the fashion mart template and trade in the pure mart template? :-)

Thanks again!!

Jan Willem
The topic has been locked.

parent product gets into basket 11 years 6 months ago #654

Hi,
This template looks great, indeed, but I think this topic is still alive.
I have added to my parent products a Stockable Variant Plug In for each one and I can add those parents to the basket in the category view.

How can I disable that feature? Thx.

The screenshot is attached.

Thanks for your help.
Attachments:
The topic has been locked.

parent product gets into basket 11 years 6 months ago #664

Hi amenendez.

Yes, you are right, probably we didn't consider this kind of situation.
The "add to cart" button should be hidden in GridView and MultiGridView as parent product is added without any attribute, But it is okay to leave it how it is now in ListView layout though since visitors can select the attribute.

I have sent you the patch for it. Please check your email.

Cheers.
The topic has been locked.

parent product gets into basket 11 years 6 months ago #675

Hi,

Thank you very much for your inmediate response!

It works fine and I consider this problem solved!

Cheers.
The topic has been locked.

parent product gets into basket 11 years 6 months ago #681

jaynini wrote:
Great!! I think I have to change to the fashion mart template although I really like the looks of Pure Mart (specifications tab would be fantastic for our shop !). Is it possible to buy the fashion mart template and trade in the pure mart template?


Have you thought about my proposal?

cheers

Jan Willem
The topic has been locked.

parent product gets into basket 11 years 6 months ago #692

Hi,
Thats okay "jaynini", you don't need to buy the fashionMArt template at all.
I am changing your product from PureMart to FashionMart, without touching your "Multiple domain license+free updates"

Cheers.
The topic has been locked.

parent product gets into basket 11 years 6 months ago #694

Thank you!! :-)

Greetings from a rainy Amsterdam,

Jan Willem
The topic has been locked.

parent product gets into basket 11 years 6 months ago #705

your welcome.
Enjoy your rainy day in Amsterdam :)

Case solved. Topic is closed.
The topic has been locked.
Time to create page: 0.120 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