Hi all!
After dealing with this issue for several days, I'm kinda out of options. So I'm turning to the forum hoping someone can help me figure out what I'm doing wrong.
I'm trying to persist some values after the user pays for a product. I'm using db_persist inside the PayPal processor file to increase the number of sales, total earned, etc.
Since many products can be related to an owner, I'm using relations to find that user by ID. This is the code inside the processor:
Any insight on this is much appreciated.
Thanks
After dealing with this issue for several days, I'm kinda out of options. So I'm turning to the forum hoping someone can help me figure out what I'm doing wrong.
I'm trying to persist some values after the user pays for a product. I'm using db_persist inside the PayPal processor file to increase the number of sales, total earned, etc.
Since many products can be related to an owner, I'm using relations to find that user by ID. This is the code inside the processor:
- Code: Select all
<cms:if k_paypal_success>
<cms:related_pages id='<cms:show pp_item_number />' limit="1">
<cms:db_persist
_masterpage="users/index.php"
_page_id=k_page_id
_mode='edit'
user_total_sales="<cms:add user_total_sales '1' />" />
</cms:related_pages>
</cms:if>
Any insight on this is much appreciated.
Thanks