Jump to content

Archived

This topic is now archived and is closed to further replies.

Rayzak

Add 2% to price from database and remove 90% for it

Recommended Posts

Hello there!

I got a question:

 

$this->data[$data['products_id']] = array ( 
'unit_price' =>  $data['unit_price'],
'unit_name' =>  $data['unit_name'],
'unit_shipping' =>  ..................
);

 

This is the part of my feed.

 

1. I need to take $data['unit_price'] and add 2% to get 102% in total it should appear as 'unit_price' in text file I'm exporting my feed to.

(price + 2%)=total price

 

2. Then, 'unit_shipping' should be 10% of 102%

('unit_price' + 2%)-90%= 'unit_shipping'

 

I would appreciate any help.

 

Thank you.

Share this post


Link to post
Share on other sites

×