Forum

Thread tagged as: Question

Adding a value to the current perch_item_index

Hi,

How can I add a value to the perch_item_index.

For example

perch_item_index + 1.

I need the index to be offset as i am using this as part of an ID tag.

Cheers

Dennis Pickworth

Dennis Pickworth 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You can't do that directly. Can you give an example of what you're trying to do as there may be another way.

The reason I need this to pass the values into a roman cart. I have changed the id of the 'productOptions_html' in the paypal shop.

I can pass these options into the cart if I can either start the index from say 2 or add a variable to the 'perch_item_index'

I know that you don't support third party carts etc, but This information would also be useful projects that I have on the go.

Many Thanks.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, thanks, I don't think I have an immediate solution but we'll certainly take it into consideration.