You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Hi, my quantities disappeared from my basket some time ago. Does anyone know how I can get them back? I think it's putting off a lot of customers
Thanks
Offline
At checkout item display i have:
print '<p class="khxc_formfieldpnfs">Quantity: ' . $cartdata['quantity'] . '</p>';
is that right?
Offline
Hi Sushi,
Here's what I have.
<?php $app = $this->globals('khxc_display.app'); $eol = $this->globals('khxc.eol'); $cartdata = $this->globals('ecom.checkout_itemdisp'); $shownums = $this->globals('khxc_settings.' . $app . '.dispprodnums'); $optlb = $this->globals('khxc_settings.' . $app . '.dispprodoptlinebr'); if ($shownums) { $cartdata['name'] = $cartdata['number'] . ' - ' . $cartdata['name']; } print '<p class="khxc_formfieldpnfs"><strong>' . $this->xhtml_encode($cartdata['name']); print '</strong></p>' . $eol; $proddisp = ''; if (!(empty($cartdata['optdisp']))) { $xodisp = ''; foreach ($cartdata['optdisp'] as $oname => $ovalue) { if (!(empty($ovalue))) { $oname = $this->xhtml_encode($oname); $ovalue = $this->xhtml_encode($ovalue); $xodisp .= $oname . ': ' . $ovalue; if ($optlb) {$xodisp .= '<br />';} else {$xodisp .= '; ';} } // End of if statement. } // End of foreach statement. if (!(empty($xodisp))) { $xodisp = preg_replace('/\; $/','',$xodisp); $xodisp = preg_replace('/\<br \/\>$/','',$xodisp); if (!(empty($proddisp))) {$proddisp .= '<br />';} $proddisp .= $xodisp; } // End of if statement. } // End of if statement. print '<p class="khxc_formfieldpnfs">' . $proddisp . '</p>'; print '<p class="khxc_formfieldpnfs">Quantity: ' . $cartdata['quantity'] . '</p>'; ?>
I've put the whole file in as the bit you wanted checked is the same as mine.
Offline
thanks steve,
where should I insert this?
Offline
Hi,
The file above is the one which you asked if the line you put in your post was correct. It's the same as the line in my file called " Checkout item display" in the following category:-
Home > ClickCartPro (GBU) > Displays: Skins, Menus, XHTML Includes and Messages > Manage XHTML Includes
Compare the file I have which works and gives a box field with the number of items in to your file and see if there's a difference. The line you posted though does seem to be correct, you can verify it against the bottom bit of my file.
Offline
thanks steve I'll give it a try
Offline
yes, i tried swapping it for your version and it made no difference. It must be something else?
Offline
has anyone got any ideas? this has been like this for months now, surely someone must have come across this before?!
Offline
The quantity value is display by the "Shopping Cart/Wish List Display" XHTML include found in admin under Home > ClickCartPro (GBU) > Displays: Skins, Menus, XHTML Includes and Messages > Manage XHTML Includes
About two thirds of the way down in the "Include File Contents" field you'll see a block of code that looks like this:
print '<td class="khxc_sorttable">'; print '<p class="hidden"><label for="' . $app . '--updatecart--quantity--'; print $cartdata['randid'] . '">Quantity</label></p>' . $eol; print '<input class="khxc_quickfield" type="text" name="'; print $app . '--updatecart--quantity--' . $cartdata['randid']; print '" id="' . $app . '--updatecart--quantity--' . $cartdata['randid']; print '" value="' . $cartdata['quantity'] . '" size="5" maxlength="5" />' . $eol; print '</td>' . $eol;
What appears to be missing from yours is:
print '<input class="khxc_quickfield" type="text" name="'; print $app . '--updatecart--quantity--' . $cartdata['randid']; print '" id="' . $app . '--updatecart--quantity--' . $cartdata['randid']; print '" value="' . $cartdata['quantity'] . '" size="5" maxlength="5" />' . $eol;
Offline
brilliant, thanks dave, ill try that out.
Offline
sorry dave I can't see the difference? The top one is what I have, the bottom one is just the same as the top without the first 3 lines? Should I delete those lines?
I'm not sure what I should do?
Offline
dave?
Offline
Your copy didn't appear to have the 3 lines I posted. I was showing you a larger block of code so you could get your bearings and know where to check/look.
Offline
I know what your saying but the 4 lines you gave me are already in there. So should I put them in twice?
/
Offline
No and when I originally looked at the problem they were not there since the field was not being displayed (which was the original problem I believe).
Offline