Guest pezza Posted July 18, 2008 Share Posted July 18, 2008 With my shop im trying to add a product in different sizes. These different sizes would cost different ammounts. Is there any way I can add different product options with different prices without it having to add or take away from the actual price. I would like it just to show how much that item would be. Ive tried adding n/a to the add or take-away box but then it doesn't seem to work. Look here for an example. thanks Quote Link to comment Share on other sites More sharing options...
Guest cherryaa Posted July 18, 2008 Share Posted July 18, 2008 Hello, Pezza: welcome There's probably a better way to do this, but I hacked my way around it as follows: 1] Started off with a zero price, then used 'Option Price' and '+' in the admin area, to set the price of each option. 2] Replaced the tilde '~' with a blank space ' '. You can do this with a search-and-replace for "~" replace with " " in the files admin/products/options.php and includes/content/cart.inc.php . I think that's all there was ... take a look at mine, here - see if it will work for you, and post back if it turns out I've missed something =========================== added (just styling stuff) I made this alteration in styleTemplates/content/viewProd.tpl: changed this: <td><strong>{VAL_OPTS_NAME}</strong></td> <td> <select name="productOptions[]"> <!-- BEGIN: repeat_values --> <option value="{VAL_ASSIGN_ID}"> {VAL_VALUE_NAME} <!-- BEGIN: repeat_price --> ({VAL_OPT_SIGN}{VAL_OPT_PRICE}) <!-- END: repeat_price --> </option> <!-- END: repeat_values --> </select> </td> to this: <td colspan="2"> <select name="productOptions[]" class="optionsSelect"> <!-- BEGIN: repeat_values --> <option value="{VAL_ASSIGN_ID}" class="optionsSelect"> {VAL_VALUE_NAME}: <!-- BEGIN: repeat_price --> {VAL_OPT_PRICE} <!-- END: repeat_price --> </option> <!-- END: repeat_values --> </select> </td> All the best, Cherry Quote Link to comment Share on other sites More sharing options...
Guest pezza Posted July 18, 2008 Share Posted July 18, 2008 Thanks a lot for that. I can see how that would work but then wouldnt I have to set the item for £0. And that looks a bit silly in category view. Quote Link to comment Share on other sites More sharing options...
Guest cherryaa Posted July 19, 2008 Share Posted July 19, 2008 Thanks a lot for that. I can see how that would work but then wouldnt I have to set the item for £0. And that looks a bit silly in category view. Yeah .... I've added an "if price is 0, price is blank" line to my db.config. But I see how you want prices in your category view. I think you can use the 'N/A' selection though - I've just done it with a test option on my page, linked above. Just type in the price for 28mm, etc. Quote Link to comment Share on other sites More sharing options...
Guest pezza Posted July 19, 2008 Share Posted July 19, 2008 That's what im doing at the moment...using the N/A selection. Try it yourself. On the link i sent you,try any option and the amount £1.70 will allways show in the cart. Thanks a lot for your help. I'm just not sure what your suggesting would be appropriate for my site. There must be a simple way, surly. Quote Link to comment Share on other sites More sharing options...
burgensteen Posted July 19, 2008 Share Posted July 19, 2008 Try Cubecartforums, I believe they have what your after. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.