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

hobartimus

  • Jr. Member
  • **
  • Posts: 150
    • Catch Light Productions
Re: MOD: Child list instead of drop down. UPDATE(1
« Reply #480 on: May 23, 2007, 16:02:39 pm »
hi,
i need to add the word "stock" in the field indicated from the arrow in the attach image.
Thanks in advance,terry.


How did you add the "Stock" info? I need to do that for one of my stores.
Howard Theriot
www.catchlight.com

terry

  • Beginner
  • *
  • Posts: 6
Thank Macallf for you reply,
Quote
Add it into the th section of the mod
I cannot find the th section.

Quote
you have obviously changed part of it to display stock
I  haven't  made any modifications

the previous output is only the result of this setting ( image attach-child.jpg)
Cheers,
terry

p.s.
I have also installed "Lightbox + more images hack 1.0.10"
Joomla version:        Joomla! 1.0.12 Stable
VirtueMart version :   VirtueMart 1.0.10

[attachment cleanup by admin]

macallf

  • Full Member
  • ***
  • Posts: 2411
    • Mark Callf Design
Stock level is not displayed by default. The code is there for an extension to the childlist that I haven't finalised.

If the stock level is showing then some files have been altered to show them.

ps_product_attribute.php

line 364

                //Product Stock Level Addition
                //
                if($local_shop) {
                    $html .=  "<td align='right' width='5%'>";
                    $html .= " " . $db->f('product_in_stock') . "</td>";
                    $columns++;
                //
                //End of stock Level
                }


and line 278

                    if ($local_shop)
                        $html .= "<th>Stock</th>";

to enable it just remove the lines highlighted in red

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
Is there a way to have it show product availability?
Howard Theriot
www.catchlight.com

macallf

  • Full Member
  • ***
  • Posts: 2411
    • Mark Callf Design
Is there a way to have it show product availability?

You could, but the graphics would play havoc with the display formatting. That's why I haven't included it. But feel free to modify to your hearts content.

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
What about just including any text that is put in the "Availability:" field for the product?
Howard Theriot
www.catchlight.com

macallf

  • Full Member
  • ***
  • Posts: 2411
    • Mark Callf Design
Like I said, feel free to modify.

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.

terry

  • Beginner
  • *
  • Posts: 6
Quote
ps_product_attribute.php

line 364

                //Product Stock Level Addition
                //
                if($local_shop) {
                    $html .=  "<td align='right' width='5%'>";
                    $html .= " " . $db->f('product_in_stock') . "</td>";
                    $columns++;
                //
                //End of stock Level
                }


and line 278

                    if ($local_shop)
                        $html .= "<th>Stock</th>";

THANKS MACALLF :-*
WORK
YOU ARE EXTRAORDINARY
terry

[attachment cleanup by admin]

macallf

  • Full Member
  • ***
  • Posts: 2411
    • Mark Callf Design
THANKS MACALLF :-*
WORK
YOU ARE EXTRAORDINARY
terry

You are welcome, feel free to donate, it helps keep the support going  ;D.

All my mods are now on my website, complete with a support forum and installation instructions.

I am thinking of locking this thread and moving everything over. This thread is huge and becoming impossible to manage.

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.

mari dansk

  • Beginner
  • *
  • Posts: 4
Hello

is the "Override Child products Display Values and use parents" option doing anything?
I need to have the child products with other options but they are all disabled!
only quantity is active but the changes made there doesn't appear in the site

am i doing something wrong?
thanks 

macallf

  • Full Member
  • ***
  • Posts: 2411
    • Mark Callf Design
If you click override child products...(in the parent product), the parents values are used and not the childs. Unchecking this will enable the child products to show their individual quantity options.

You can not set a child to use drop down, list etc as it is not a parent.

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.

mari dansk

  • Beginner
  • *
  • Posts: 4
thank you for your reply, i got it now.

is there a possibility to use * (multiply) in the "Attribute List" ?

like this:
Examples for the Attribute List Format:
Size,XL[*1.35],M,S[-2.99];

for the product to have the price biger by 35% for the size XL

i guess the ps.product.php needs to be modified a bit

thanks

macallf

  • Full Member
  • ***
  • Posts: 2411
    • Mark Callf Design
thank you for your reply, i got it now.

is there a possibility to use * (multiply) in the "Attribute List" ?

like this:
Examples for the Attribute List Format:
Size,XL[*1.35],M,S[-2.99];

for the product to have the price biger by 35% for the size XL

i guess the ps.product.php needs to be modified a bit

thanks

That's nothing to do with the child list mod! But you would have to alter ps_product_attribute and not ps_product

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.

snazzyperry

  • Jr. Member
  • **
  • Posts: 97
I'm not too sure if you knew this, but there are spelling mistakes in your document and now online!

Upadte Cart should be Update Cart as this looks very unprofessional online in my store.

Where do I go to fix/edit this and correct it??

snazzyperry

  • Jr. Member
  • **
  • Posts: 97
FOUND IT!!

It was in your 'english.php' file for the update.