Author Topic: MOD: Child list instead of drop down. UPDATE(1.0.11) + store wide quantity mod  (Read 456464 times)

Lev

  • Jr. Member
  • **
  • Posts: 59
Mark, hi again and thanx again for your prompt response.

There is one feature (should I call it a bug?) that seems to be interfering with using the mod.

Please review the attached graphic; pay attention to the word "Material ()" that appears under the product name I made it more visible by adding an oval around it).

In order to create a child product I need an attribute, right? Well, I added a dummy attribute Material which made it possible to create several child products. All looks great - except for the shopping cart. The attribute (or, rather, the NON-attribute) is quite confusing.

So - I would LOVE to use the mod if I only knew how to get rid of this "attribute" in the shopping cart.

OK, suppose I reupload the mod. We are now using Levels as attribute (beginner/intermediate/advanced). How can I use the mod so as to:

1) display the products as a list, not as a drop-down:
Book X Level A |Add to Cart|
Book X Level B |Add to Cart|
Book X Level C |Add to Cart|

2) can it be done WITHOUT declaring these levels as CHILD products - just using the attribute (Levels,A,B,C)?

I hope I am making sense (unless the answer is quite obvious and I am simply missing something).

TIA -

Lev

[attachment cleanup by admin]

macallf

  • Full Member
  • ***
  • Posts: 2411
    • Mark Callf Design
If you specify an attribute to create a child product you should enter something!

So for each child product, using your example, The title would be Book X and the attribute(Which is now called Levels)  would have values of beginner, intermediate and advanced.

Then when you add an item to the cart it would be Book X Level:Beginner etc.

The standard attributes(also called advanced attributes) as on the status page can not be used to do this. This mod was not designed to do that. It is just for child products.

Mark





Mark
All of My old mods are now available on my website.
Mark Callf Designs

If you like the work I've done for VM please fell free to Donate

Please Note: I am no longer actively developing or involved with VM development.

hobartimus

  • Jr. Member
  • **
  • Posts: 150
    • Catch Light Productions
Can you tell me how to make the child product sort by SKU?

I have tried applying the fix posted here but it has no affect...
http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=17526.msg55297#msg55297
Howard Theriot
www.catchlight.com

macallf

  • Full Member
  • ***
  • Posts: 2411
    • Mark Callf Design
You have to edit ps_product_attribute.php
on these lines

229,241,436,447,628,638

and to each query add ORDER BY product_sku

These are the queries for list with one addtocart button, list with multiple addtocart button and finally the dropdown list.

Mark
Mark
All of My old mods are now available on my website.
Mark Callf Designs

If you like the work I've done for VM please fell free to Donate

Please Note: I am no longer actively developing or involved with VM development.

hobartimus

  • Jr. Member
  • **
  • Posts: 150
    • Catch Light Productions
Ah! Apparently I missed lines 229 and 241. Seems to be working fine now. Thanks!
Howard Theriot
www.catchlight.com

EZToms

  • Beginner
  • *
  • Posts: 11
Hello,

Congratulation for this great hack. I have installed it without trouble and it works very nicely.

I have a few questions :

- Where can I find the list of added VAR in english.php as I would like to make the translation to another language, french.

- I'd like to have a list of child thumbnails, I've searched a lot in the forum, but haven't find the solution. I'm pretty sure you hack can be modified for this. I want to do a color picker in the spirit of this site http://www.purlsoho.com/purl/products/yarndetail/801 If you have some direction to help me out, that would help a lot.

Thanks,

Thomas


macallf

  • Full Member
  • ***
  • Posts: 2411
    • Mark Callf Design
I haven't got a definitive list of the language vars and to my shame i think some of them are hardcoded!

Sorry, but they are only in the backend.

All the formatting for the child lists is done in ps_product_attribute.php

2 functions list_attribute_list and list_attribute_list_multiple

This is where you would have to put the image links

Mark

just done a quick check these should be all the language vars

    var $_PHPSHOP_EMPTY_YOUR_CART = 'Empty Cart';
    var $_PHPSHOP_CART_DOWNLOAD = 'Download';
    var $_PHPSHOP_CART_UPDATE_TEXT = 'Upadte Cart';
    var $_PHPSHOP_PRODUCT_FORM_ITEM_DISPLAY_LBL = 'Display Options';
    var $_PHPSHOP_ADMIN_CFG_SHOW_CART_ON_ADD = 'Dont show cart on add to cart';
    var $_PHPSHOP_ADMIN_CFG_SHOW_CART_ON_ADD_EXPLAIN = 'If you select this the cart is not displayed when you add a product.';
    var $_PHPSHOP_DISPLAY_USE_PARENT = 'Override Child products Display Values and use parents';
    var $_PHPSHOP_DISPLAY_NORMAL = 'Standard Quantity Box';
    var $_PHPSHOP_DISPLAY_HIDE = 'Hide Quantity Box';
    var $_PHPSHOP_DISPLAY_DROPDOWN = 'Use Dropdown Box';
    var $_PHPSHOP_DISPLAY_CHECKBOX = 'Use Check Box';
    var $_PHPSHOP_DISPLAY_ONE = 'One Add to Cart Button';
    var $_PHPSHOP_DISPLAY_MANY = 'Add to Cart Button for each Child';
    var $_PHPSHOP_DISPLAY_START = 'Start Value';
    var $_PHPSHOP_DISPLAY_END = 'End Value';
    var $_PHPSHOP_DISPLAY_STEP = 'Step Value';
Mark
All of My old mods are now available on my website.
Mark Callf Designs

If you like the work I've done for VM please fell free to Donate

Please Note: I am no longer actively developing or involved with VM development.

EZToms

  • Beginner
  • *
  • Posts: 11
Thanks for your quick answer,

I'll make the translation from what you've given me. and try to see what's missing from there.

Hardcoded... bouuuh ;)

Does anyone maintain localisation of your mod btw ?

I love your photograph site, shows a lot of what can be done, very nice.

I'll try to dig more to achieve what i want to do. thanks for the help.

macallf

  • Full Member
  • ***
  • Posts: 2411
    • Mark Callf Design
I don't think anybody has kept up with localization! Which is a shame. All i Can say that is this is built into VM1.1 as standard, and all strings are in the language files, so translations are hopefully up to date.

I'm glad you like the photography site, I hope it demonstrates what is possible with VM.

I'll try to remove all hardcoded strings for the next release of VM 1.0.x

As you can understand for such an involved mod there is a lot to maintain and sometimes I miss things. I hope you will bear with me!

Mark
Mark
All of My old mods are now available on my website.
Mark Callf Designs

If you like the work I've done for VM please fell free to Donate

Please Note: I am no longer actively developing or involved with VM development.

Kay

  • Beginner
  • *
  • Posts: 26
  • microdesign.nl
    • Webdesign
Re: MOD: Child list instead of drop down. UPDATE(1
« Reply #459 on: May 04, 2007, 10:23:12 am »
Really awsome add-on this!

EZToms

  • Beginner
  • *
  • Posts: 11
Updated my language file, looks ok.

See joined the missing translation in admin just for info, now I have text everywhere which is fine for me.

I have a small comment, when You use add to cart for each child, you have "add to cart" displayed, but if you have only one add to cart on the bottom, you have "update cart" which isn't very clear if the cart is empty.

[attachment cleanup by admin]

Benny

  • Beginner
  • *
  • Posts: 10
Hello Mark,

I am still searching for a post with the installation instructions. Maybe you can post it for me please?

Until now I tried to replace my root/amdinistrator/components/com_virtuemart with your data but then I didn´t see any more products on my page.

Would be great if you can give me short link.

Thanks
Benny

macallf

  • Full Member
  • ***
  • Posts: 2411
    • Mark Callf Design
Hello Mark,

I am still searching for a post with the installation instructions. Maybe you can post it for me please?

Until now I tried to replace my root/amdinistrator/components/com_virtuemart with your data but then I didn´t see any more products on my page.

Would be great if you can give me short link.

Thanks
Benny

That is all there is to it.

Unzip and overwrite the files in root/administrator/components/com_virtuemart

i.e. when it asks to overwrite select yes.

Mark
Mark
All of My old mods are now available on my website.
Mark Callf Designs

If you like the work I've done for VM please fell free to Donate

Please Note: I am no longer actively developing or involved with VM development.

macallf

  • Full Member
  • ***
  • Posts: 2411
    • Mark Callf Design
Updated my language file, looks ok.

See joined the missing translation in admin just for info, now I have text everywhere which is fine for me.

I have a small comment, when You use add to cart for each child, you have "add to cart" displayed, but if you have only one add to cart on the bottom, you have "update cart" which isn't very clear if the cart is empty.

I have attached a new language file and a new product.product_form with the new language vars set

which are

    var $_PHPSHOP_DISPLAY_USE_PARENT = 'Use Parent Settings';
   var $_PHPSHOP_DISPLAY_LIST = 'List';
    var $_PHPSHOP_DISPLAY_LIST_DESCRIPTION = 'Use List box for child products';
    var $_PHPSHOP_DISPLAY_LIST_STYLE = 'List Style';
    var $_PHPSHOP_DISPLAY_TABLE_HEADER = 'Display Table Header';
    var $_PHPSHOP_DISPLAY_CHILD_LINK = 'Link to child product from list';
    var $_PHPSHOP_DISPLAY_QUANTITY = 'Quantity';
    var $_PHPSHOP_DISPLAY_DROPDOWN_VALUES = 'Drop Down Box Values';


I hope this helps with your translation

Mark

[attachment cleanup by admin]
Mark
All of My old mods are now available on my website.
Mark Callf Designs

If you like the work I've done for VM please fell free to Donate

Please Note: I am no longer actively developing or involved with VM development.

EZToms

  • Beginner
  • *
  • Posts: 11
 :o :o

Thanks a lot, you'll try that and tell you how it goes.