Jump to content

Product options help


Guest pezza

Recommended Posts

Guest pezza

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

Link to comment
Share on other sites

Guest cherryaa

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}:&nbsp;&nbsp;

<!-- BEGIN: repeat_price -->

{VAL_OPT_PRICE}&nbsp;

<!-- END: repeat_price -->

</option>

<!-- END: repeat_values -->

</select>

</td>

All the best,

Cherry

Link to comment
Share on other sites

Guest pezza

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.

Link to comment
Share on other sites

Guest cherryaa

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.

Link to comment
Share on other sites

Guest pezza

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...