Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

here is the first piece of code I am confused with, I'm sure there will be more as I am still learning:

		  $products_array[] = array('id' => $products_id,
								'name' => $products['products_name'],
								'model' => $products['products_model'],
								'image' => $products['products_image'],
								'price' => $products_price,
								'quantity' => $this->contents[$products_id]['qty'],							
// The following is from the PWA Contribution, I'm not sure where it is supposed to go because of the Actual Attribute Price contribution:
// 'weight' => $products['products_weight'],				
//'final_price' => ($products_price + $this->attributes_price($products_id)),
								'weight' => $products['products_weight'],  'final_price' => ($products_price + $attributes_price),
								'attributes_price' => $attributes_price, //phpmom.com//aap

As you can see, the two lines conflict and I am not sure exactly how to merge them together...its probably really simple..but im stuck...any help is appreciated. THanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...