Hi KK,
Thank you for posting this code and helping me. It's not worked when i've checked out and brought a product. its set as 1 however wont edit when paypal success.
I used the code and made alterations ie.
the file is located in selling/p_index.php
used this code
i also tried it as just
Still not reducing the amount by 1
Thank you for posting this code and helping me. It's not worked when i've checked out and brought a product. its set as 1 however wont edit when paypal success.
I used the code and made alterations ie.
the file is located in selling/p_index.php
used this code
- Code: Select all
<cms:paypal_processor>
<cms:if k_paypal_success>
<cms:pages masterpage='selling/p_index.php' id=pp_item_number>
<cms:db_persist
_masterpage=k_template_name
_mode='edit'
_page_id=k_page_id
amount_c = "<cms:sub amount_c '1' />"
>
<cms:if k_error >
<cms:set msg="ERROR db_persist: <cms:show k_error/>" />
<cms:log msg />
</cms:if>
</cms:db_persist>
</cms:pages>
</cms:if>
<cms:if k_paypal_error>
<cms:set msg="ERROR: <cms:show k_paypal_error/>" />
<cms:log msg />
</cms:if>
</cms:paypal_processor>
i also tried it as just
- Code: Select all
<cms:paypal_processor>
<cms:if k_paypal_success>
<cms:pages masterpage='p_index.php' id=pp_item_number>
<cms:db_persist
_masterpage=k_template_name
_mode='edit'
_page_id=k_page_id
amount_c = "<cms:sub amount_c '1' />"
>
<cms:if k_error >
<cms:set msg="ERROR db_persist: <cms:show k_error/>" />
<cms:log msg />
</cms:if>
</cms:db_persist>
</cms:pages>
</cms:if>
<cms:if k_paypal_error>
<cms:set msg="ERROR: <cms:show k_paypal_error/>" />
<cms:log msg />
</cms:if>
</cms:paypal_processor>
Still not reducing the amount by 1