Wrong price on dropdown menu in cart2

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
demfranordlunde
New Member
New Member
Posts: 7
Joined: Mon Nov 24, 2014 11:56 am

Wrong price on dropdown menu in cart2

Post by demfranordlunde »

Hi everyone :)
I am a little new to simple cms, but not new to systems alike, i have a problem in this one

http://www.demfranordlunde.dk/index.php ... ade-dore-2

The price i specified for the product is right and under the product options i specified the variables in the product range with +155 +180 ect ect. but in the drop down menu for the product the price is 4.00 3.00 ect. why is that ? when i add them in the cart the price is the right one, just not the displayed ones...:( have looked everywhere for a solution and problem solving, but no luck
demfranordlunde
New Member
New Member
Posts: 7
Joined: Mon Nov 24, 2014 11:56 am

Re: Wrong price on dropdown menu in cart2

Post by demfranordlunde »

No one ? damn..... :o
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Wrong price on dropdown menu in cart2

Post by velden »

Maybe you can post your cart template here?

I'm no expert on this topic. Implemented Cart2 once and seems to work well.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Wrong price on dropdown menu in cart2

Post by Dr.CSS »

Are you actually putting the + sign in the option? I tried that and it didn't work for me it needs to be the difference only...
demfranordlunde
New Member
New Member
Posts: 7
Joined: Mon Nov 24, 2014 11:56 am

Re: Wrong price on dropdown menu in cart2

Post by demfranordlunde »

yes, both + and - . But the dropdown menu dosent display the price, only half of it
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Wrong price on dropdown menu in cart2

Post by paulbaker »

velden wrote:Maybe you can post your cart template here?
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Wrong price on dropdown menu in cart2

Post by Dr.CSS »

When you add the difference DON'T put + or - in there just the price difference if item is 10 and you want the option to make the price 15 just put 5.00 in Price Adjustment, this will auto assume it is added to the item price, a - may deduct it from the item price...
demfranordlunde
New Member
New Member
Posts: 7
Joined: Mon Nov 24, 2014 11:56 am

Re: Wrong price on dropdown menu in cart2

Post by demfranordlunde »

what cart template do you want me to post, i have those here

AddToCart Templates
MyCart Form Templates
Viewcart form templates
Default Templates
Preferences

?

About the + or - or writing nothing, works, but still the price in the menu on the page is not shown right, the price is right when i add the product, but i have to show the customer what price they are adding to the cart :)
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Wrong price on dropdown menu in cart2

Post by Dr.CSS »

It would take a log in to the admin to see what is really happening...
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Wrong price on dropdown menu in cart2

Post by velden »

Start with posting AddToCart Templates
demfranordlunde
New Member
New Member
Posts: 7
Joined: Mon Nov 24, 2014 11:56 am

Re: Wrong price on dropdown menu in cart2

Post by demfranordlunde »

Calguys Module ExtensionsModul-

Cart2 - Add/Edit AddToCart Template:

Code: Select all

{* add to cart template *}
{if isset($cart_error)}
{cgerror}{$cart_error}{/cgerror}
{/if}

{$formstart}{strip}

{if isset($single_option)}
  {* this is used if the sku passed to the Cart2 module was the sku of an option of a product *}

  <input type="hidden" name="{$actionid}cart_options" value="{$single_option}"/>
  &nbsp;@ {cgecomm_currency_symbol}{$unitprice|number_format:2}
{elseif isset($options)}
  {* we have multiple options *}
 <p style="font-weight:bold;font-size:14px;">Vælg variant:</p> <select name="{$actionid}cart_options">
    {html_options options=$options}
  </select>
{else}
  {* no options *}
  
{/if}
<p>Antal: <input class="produkt-antal" type="text" name="{$quantityname}" value="1" size="6" maxlength="6"/></p>
<input class="produkt-tilfoj" type="submit" name="{$submitname}" value="Læg i kurv"/>
{/strip}{$formend}
Last edited by velden on Tue Dec 09, 2014 8:56 am, edited 1 time in total.
Reason: added code block tags
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Wrong price on dropdown menu in cart2

Post by velden »

Looks pretty much like how it's meant to be.

However, I think I have a similar problem too:

Products has a product of 7.94 EUR. It has options that all have price adjustment set to 0 (zero).
All prices are now rounded to 7.00 EUR in the options list AND when adding to cart too.

Going to investigate this further because this should not happen.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Wrong price on dropdown menu in cart2

Post by velden »

I think I found the problem but will first talk with developer. If confirmed I will file a bug report.
demfranordlunde
New Member
New Member
Posts: 7
Joined: Mon Nov 24, 2014 11:56 am

Re: Wrong price on dropdown menu in cart2

Post by demfranordlunde »

Okay, that is great, will look forward to hearing more :)
demfranordlunde
New Member
New Member
Posts: 7
Joined: Mon Nov 24, 2014 11:56 am

Re: Wrong price on dropdown menu in cart2

Post by demfranordlunde »

Anything i can do to fix it temporary ?
Locked

Return to “Modules/Add-Ons”