Kryptronic Software Support Forum

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.

#1 07-02-2009 05:39:55

sushisushi
Member
From: barnsley, UK
Registered: 06-26-2008
Posts: 88
Website

basket quantities

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


Buy sushi making ingredients, sushi party kits and Japanese food at wwwsushisushi.co.uk

Offline

 

#2 07-02-2009 05:55:56

sushisushi
Member
From: barnsley, UK
Registered: 06-26-2008
Posts: 88
Website

Re: basket quantities

At checkout item display i have:


print '<p class="khxc_formfieldpnfs">Quantity: ' . $cartdata['quantity'] . '</p>';

is that right?


Buy sushi making ingredients, sushi party kits and Japanese food at wwwsushisushi.co.uk

Offline

 

#3 07-03-2009 02:31:53

Jacko
Member
From: Nottinghamshire, UK
Registered: 02-05-2008
Posts: 47
Website

Re: basket quantities

Hi Sushi,

Here's what I have.

Code:

<?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.


Steve Jackson

Astral Moon, for all your Pagan, Wiccan, New Age and Gothic needs.

http://www.astralmoon.co.uk

Offline

 

#4 07-03-2009 04:57:33

sushisushi
Member
From: barnsley, UK
Registered: 06-26-2008
Posts: 88
Website

Re: basket quantities

thanks steve,

where should I insert this?


Buy sushi making ingredients, sushi party kits and Japanese food at wwwsushisushi.co.uk

Offline

 

#5 07-03-2009 06:46:59

Jacko
Member
From: Nottinghamshire, UK
Registered: 02-05-2008
Posts: 47
Website

Re: basket quantities

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.


Steve Jackson

Astral Moon, for all your Pagan, Wiccan, New Age and Gothic needs.

http://www.astralmoon.co.uk

Offline

 

#6 07-03-2009 06:49:23

sushisushi
Member
From: barnsley, UK
Registered: 06-26-2008
Posts: 88
Website

Re: basket quantities

thanks steve I'll give it a try


Buy sushi making ingredients, sushi party kits and Japanese food at wwwsushisushi.co.uk

Offline

 

#7 07-06-2009 05:44:18

sushisushi
Member
From: barnsley, UK
Registered: 06-26-2008
Posts: 88
Website

Re: basket quantities

yes, i tried swapping it for your version and it made no difference. It must be something else?


Buy sushi making ingredients, sushi party kits and Japanese food at wwwsushisushi.co.uk

Offline

 

#8 07-15-2009 04:37:04

sushisushi
Member
From: barnsley, UK
Registered: 06-26-2008
Posts: 88
Website

Re: basket quantities

has anyone got any ideas? this has been like this for months now, surely someone must have come across this before?!


Buy sushi making ingredients, sushi party kits and Japanese food at wwwsushisushi.co.uk

Offline

 

#9 07-15-2009 05:30:44

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: basket quantities

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:

Code:

               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:

Code:

               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

 

#10 07-15-2009 05:48:56

sushisushi
Member
From: barnsley, UK
Registered: 06-26-2008
Posts: 88
Website

Re: basket quantities

brilliant, thanks dave, ill try that out.


Buy sushi making ingredients, sushi party kits and Japanese food at wwwsushisushi.co.uk

Offline

 

#11 07-28-2009 07:02:53

sushisushi
Member
From: barnsley, UK
Registered: 06-26-2008
Posts: 88
Website

Re: basket quantities

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?


Buy sushi making ingredients, sushi party kits and Japanese food at wwwsushisushi.co.uk

Offline

 

#12 07-29-2009 13:56:03

sushisushi
Member
From: barnsley, UK
Registered: 06-26-2008
Posts: 88
Website

Re: basket quantities

dave?


Buy sushi making ingredients, sushi party kits and Japanese food at wwwsushisushi.co.uk

Offline

 

#13 07-29-2009 14:21:57

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: basket quantities

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

 

#14 07-29-2009 14:35:37

sushisushi
Member
From: barnsley, UK
Registered: 06-26-2008
Posts: 88
Website

Re: basket quantities

I know what your saying but the 4 lines you gave me are already in there. So should I put them in twice?
/


Buy sushi making ingredients, sushi party kits and Japanese food at wwwsushisushi.co.uk

Offline

 

#15 07-29-2009 15:02:59

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: basket quantities

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

 

Board footer