${Cartid} minus 1

You have a question or need an advice about how to do something? Ask it here!
Post Reply
Regulate
Posts: 14
Joined: 23 Jul 2020 12:10
${Cartid} minus 1

Post by Regulate »

Hi Bernd or anyone who knows this :). Is it possible to do a calculation on the $cartid. I need the $cartid minus 1 value for programming an event.
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: ${Cartid} minus 1

Post by radio42 »

Sure, take a look to the *[TOINT: ...
Example:

Code: Select all

*[TOINT:{${cartid}}:{add}:{-1}]
Regulate
Posts: 14
Joined: 23 Jul 2020 12:10
Re: ${Cartid} minus 1

Post by Regulate »

Damn Bernd, you really thought of everything. It works like a charm. Thank u very much :)

Post Reply