close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

cart->FullDetails only includes first item in cart

Thread began 5/13/2010 9:57 am by d.heraty217756 | Last modified 5/13/2010 5:43 pm by Jimmy Wu | 588 views | 2 replies |

d.heraty217756

cart->FullDetails only includes first item in cart

Multiple item cart, FullDetails only includes the first item. Things look okay in cart_PHP.php file... is there somewhere else I should be looking to make sure this value is populated by looping through the cart?

Below are all references to FullDetails in cart_PHP.php:

//start node
function ResetCalculations($itmObj) {
$itmObj->TotalWeight = $itmObj->Weight * $itmObj->Quantity;//w
$itmObj->TotalPrice = ($itmObj->Price - (abs($itmObj->Quantity>=4)*$itmObj->Price*0.1)) * $itmObj->Quantity;//c
$itmObj->FullDetails = $itmObj->Quantity . ' ' . $itmObj->Name . ' (' . $itmObj->ID . ')';//t
$itmObj->SalesTax = $itmObj->TotalPrice*.0825 ;//c
$itmObj->Shipping = $itmObj->TotalPrice*.10;//c
$itmObj->TruePrice = $itmObj->Price - (abs($itmObj->Quantity>=4)*$itmObj->Price*0.1);//c
$itmObj->TotalDiscount = ($itmObj->Price-$itmObj->TruePrice)*$itmObj->Quantity;//c
return $itmObj;
}
//end node

//calculations
$this->TotalWeight = $this->Weight * $this->Quantity;//w
$this->TotalPrice = ($this->Price - (abs($this->Quantity>=4)*$this->Price*0.1)) * $this->Quantity;//c
$this->FullDetails = $this->Quantity . ' ' . $this->Name . ' (' . $this->ID . ')';//t
$this->SalesTax = $this->TotalPrice*.0825 ;//c
$this->Shipping = $this->TotalPrice*.10;//c
$this->TruePrice = $this->Price - (abs($this->Quantity>=4)*$this->Price*0.1);//c
$this->TotalDiscount = ($this->Price-$this->TruePrice)*$this->Quantity;//c

Thanks in advance for your help,
Dawn

Sign in to reply to this post

d.heraty217756

Figured it out... it had to do with DisplayInfo vs TotalColumn in the cart. I was also receiving an error regarding the cart object, so I deleted the object and re-inserted it. Between the two it fixed the problem!

Sign in to reply to this post

Jimmy Wu

Great to hear you were able to resolve the issue. If you run into any additional issues, feel free to open a new thread.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...