chrometweaks.org

Is there a better free iPage hosting service than byehost.com?

Click Here To View All Answers...


My question is Is there a better free iPage hosting service than byehost.com? Thanks in advance for any comment. Second question.. Hi all.

I 've put both name and model of a desired product on the shopping cart info box..

Now below that, I'd like to put the chosen options of a product in this box when added to the shopping cart...i tried to sort it out but here is what I obtain:.

1 x Dlicatesse (< name).

[BLUE-LILAC] (< model).

Array (< options) why an array??.

12,00 € (<price).

Here is my code (\webspace\includes\boxes\shopping_cart.php):.

Thank you in advance for both your help & time.

Enjoy.

Ben.

This post has been edited by.

Virgule.

: 24 November 2003, 16:13..

Comments (137)

Yup, although you might wanna make sure and wait for another person to confirm my answer as I am not quite sure. Better yet, why don't you contact the iPage guys because they can give you an answer better...

Comment #1

$products[$i]['attributes'] is (potentially) a list, so it is stored in an array. I've seen products with as many as 15 options. You can find an example traversing the array in checkout_process.php.

Hth,.

Matt..

Comment #2

Cheerz m8 for your message!.

I tried it and now it works properly.

Thks again.

Enjoy.

Ben..

Comment #3

No it doesn 't work...i dunno how to put that list in this array.

Erf..i follow the same thing in checkout_process.php!.

Need more help plz.

Enjoy.

Ben..

Comment #4

Good day I am trying to do thids also.... I did as you listed bu t this is what I get in the shopping cart info box.

USING.

$cart_contents_string .= $products[$i]['name']. '&nbsp;<br>['$products[$i]['model']. ']<br>'$products[$i]['attributes'] .'</span></td></tr></a>';.

YEILDS.

Deco Slide Mounts.

[PPsldmt] Deco Slide Mounts.

The shopping cart page to the right shows this (which is what I want in the info box for shopping cart).

Deco Slide Mounts.

- Color Mocha Creme.

What do I need to change here $products[$i]['attributes'] .' for this color to show up on the left in the box? I tried Option Value in place of attributes but it did not work. Can anyone help?..

Comment #5

I found the code that writes what I want if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) {.

Reset($products[$i]['attributes']);.

While (list($option, $value) = each($products[$i]['attributes'])) {.

$products_name .= '<br><small><i> - '$products[$i][$option]['products_options_name']' '$products[$i][$option]['products_options_values_name']'</i></small>';.

}.

}.

But I do not know how to integrate it into.

Shopping_cart.

$cart_contents_string .= $products[$i]['quantity']'&nbsp;x&nbsp;</span></td><td valign="top" class="infoBoxContents"><a href="'tep_href_link(FILENAME_PRODUCT_INFO, 'products_id='$products[$i]['id'])'">';..

Comment #6

Hi all.

I 've put both name and model of a desired product on the shopping cart info box..

Now below that, I'd like to put the chosen options of a product in this box when added to the shopping cart...i tried to sort it out but here is what I obtain:.

1 x Dlicatesse (< name).

[BLUE-LILAC] (< model).

Array (< options) why an array??.

12,00 € (<price).

Here is my code (\webspace\includes\boxes\shopping_cart.php):.

Thank you in advance for both your help & time.

Enjoy.

Ben.

This post has been edited by.

Virgule.

: 24 November 2003, 16:13..

Comment #7

Sorry if I put this post on the wrong section.

Enjoy.

Ben.

This post has been edited by.

Virgule.

: 24 November 2003, 16:14..

Comment #8


This question was taken from a support group/message board and re-posted here so others can learn from it.