Changing Product Price using Hook on function.php

Raff

Active Member
Hi! Does anyone know how to hook the product price at functions.php?

I want to add to my product price. Since our current pricing formula don't allow us Complex Formula.

This is the formula i want: (Cost * 1.5) + 5 USD. The 5 usd is for shipping fee, because sometimes the item on aliexpress change from Free ePacket to paid ePacket.
 

Victoria Kudryashova

Administrator
Hi! Does anyone know how to hook the product price at functions.php?

I want to add to my product price. Since our current pricing formula don't allow us Complex Formula.

This is the formula i want: (Cost * 1.5) + 5 USD. The 5 usd is for shipping fee, because sometimes the item on aliexpress change from Free ePacket to paid ePacket.
We will implement more complexed formula soon.
 

Real Residual

Active Member
How would you want to calculate the price?
A fixed amount? or a conditional statement such as if shipping < $3 then add $5. I don't think the plugin is recording shipping prices at this time, at least I couldn't find it anywhere in the database. And yes, I do see this being an issue as higher shipping are now a common occurrence on Aliexpress with $1.50 on product cost but $2.68 on shipping. So what can we do?
 

Renee Hall

Member
Hi! Does anyone know how to hook the product price at functions.php?

I want to add to my product price. Since our current pricing formula don't allow us Complex Formula.

This is the formula i want: (Cost * 1.5) + 5 USD. The 5 usd is for shipping fee, because sometimes the item on aliexpress change from Free ePacket to paid ePacket.


Ditto. Thanks for posting this suggestion. This same issue has caused me great concern in setting pricing that's profitable but that doesn't over-inflate the cost. I want to stay competitive as more and more people jump into this selling arena. And given the fact that many AliExpress sellers are selling these same products on Amazon themselves, at my cost price, I'm already starting at a disadvantage. This formula is perfect and makes total sense.

Best of luck with your store.
 

Raff

Active Member
How would you want to calculate the price?
A fixed amount? or a conditional statement such as if shipping < $3 then add $5. I don't think the plugin is recording shipping prices at this time, at least I couldn't find it anywhere in the database. And yes, I do see this being an issue as higher shipping are now a common occurrence on Aliexpress with $1.50 on product cost but $2.68 on shipping. So what can we do?

Yes, setting a condition for Shipping Price from AliExpress i think is impossible , so for me adding 5usd is enough.
 

Real Residual

Active Member
Why not just add $5 to the pricing formula?

The default :

0 < cost < $1 cost = 7.95 | Make it 12.95 instead?
$1 < cost < $2 cost = $8.99 | Make it $13.99 instead?

So on and so forth... If all you want is "Add" $5

Or you can add a default shipping of $4.95 and apply to all.
 

Raff

Active Member
Why not just add $5 to the pricing formula?

The default :

0 < cost < $1 cost = 7.95 | Make it 12.95 instead?
$1 < cost < $2 cost = $8.99 | Make it $13.99 instead?

So on and so forth... If all you want is "Add" $5

Or you can add a default shipping of $4.95 and apply to all.
I'm not using that condition on my pricing formula.

I just add 50% increase on the Cost so im using the formula Cost * 1.5
 

pkh135

New Member
Can anyone advice how can we setup the standard shipping price for all the country since every country shipping fees is different. We can add up the free shipping fees for china post or aliexpress post in our product but how about customer request to send with DHL ? I was facing this problem for setup the shipping fees. Please help.:(
 
Top