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

Incremental pricing not updating price...

Thread began 4/07/2014 2:37 pm by Nathon Jones Web Design | Last modified 4/14/2014 12:42 pm by Nathon Jones Web Design | 564 views | 18 replies

Jason ByrnesWebAssist

it's quite simple.

you say:

  The reason I'm using LEDprodvarname is because that's what the Dimmable variable is using and they are both built from the same product variables table. Why then, if Dimmable uses LEDprodvarname:

$ATC_itemDimmable = "".$row_rsDIMMLOOKUP['LEDprodvarname'] ."";// column binding  




I have already demonstrated that this is not correct through the var_dump of the sensor recordset.

I further demonstrated that is not correct by pointing out that you have the same problem with the dimmable option:

https://www.ledwarehouseuk.com/LED-Lights-Bulbs.php?lbid=333

select None-Dimmable and the cart shows Dimmable.


I go on to further demonstrate that the column you are trying to get the option name out of, you are using in the recordset as the Option group:

rsCOLOURLOOKUP:
WHERE LEDprodvars.LEDprodvarname = 'Colour'

rsSENSORLOOKUP:
WHERE LEDprodvars.LEDprodvarname = 'Sensor'

I dont have the dimmable recordset in front of me for reference, but I bet the where clause would start

WHERE LEDprodvars.LEDprodvarname = 'Dimmable'


on one hand, you ask for my advice, but on the other hand you argue that the advice already given , and backed up with facts, is not correct.

I have already advised you to use the LEDvarname to get the option name into the cart, based on the var dump of the recordset that shows that is the column that contains the variable value you want:

array(5) { ["LEDprodoptionincr"]=> string(4) "0.00" ["LEDprodoptionsID"]=> string(3) "127" ["LEDvarname"]=> string(9) "No Sensor" ["LEDprodvarID"]=> string(1) "4" ["LEDprodvarname"]=> string(6) "Sensor" }

your argument that you are using the LEDprodvarname column for the sensor because you are also using it for the dimmable option does not make sense, because the dimmable option has the same problem.


  ...should the sensor option use LEDvarname?  



Yes, the LEDvarname is the column that contains the option name

  The two variables and the two drop down's should use exactly the same method, should they not?  



yes, they should, the dimmable option should also use the LEDvarname coluimn because that is the column that contains the option name.

I should not need to spell that out since the dimmable option is also displaying exactly the same problem. . .

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