Checkout New Variable

hello everyone, please help me with this one



I added new filed to cscart_products table. So on the fourth step I’m making a checking whether cutomer choose some specific payment method.



when the customer chooses that specific payment method i want to load record from the cscart_products table’s field that I created.



How should I do that? How can I put into $product.newfield on step_four.tpl



Please Help!!!



Thanks

[quote name=‘mr_mikey’]How should I do that? How can I put into $product.newfield on step_four.tpl

[/quote]



You’ll need to write some PHP into an addon, perhaps use my_changes; by doing this you’ll be able to utilize cs-cart’s wonderful hooks system, which includes 2 hooks, that you’d want to use:


  1. get_product_data_more
  2. get_products_post
  3. get_additional_products_data_post (optional, but should be used too)



    With these, you can alter what data in {$product} is available for your products, this might be a bit advanced for you, as I don’t know your abilities, feel free to PM me, and I’ll help you on out on this.



    Hope this helps, thanks.