WCMp Advanced Frontend Manager
-
AuthorPosts
-
-
June 6, 2022 at 3:07 AM #137693Tim KerremansParticipant
Hi there,
I’m trying to set the default commission value in an input field. it currently looks like this:
value=”<?php echo isset($vendors_commission) ? $vendors_commission : ”; ?>”I already tried the following to assign ’20’ as the default comission value but no luck.
value=”<?php echo isset($vendors_commission) ? $vendors_commission : ’20’; ?>”Not sure if it helps but here is how the variable is defined:
$vendors_commission = get_post_meta( $variation->ID, ‘vendors_commission_persentage’ ,true );Thanks in advance for helping me out with this
-
June 6, 2022 at 2:03 PM #137700NerdySupportExpert MoumitaKeymaster
Hi Tim, we will definitely assit you.
But can you please let us know by sharing some scrrenshot of where did you add these fields? Also what flow do you want to achieve.
Waiting for your reply.
-
June 6, 2022 at 3:32 PM #137704Tim KerremansParticipant
Hi,
Thanks for getting back to me. I have a custom flow which allows the commission to be calculated based on the cost of the product for the vendor.
For example:
Cost of item = 50$
Commission = 20% or 10$
Will result in selling price of customer = 60$ (50 + (20%*50))I have attached multiple screenshots and highlighted the field in which I would like to display ’20’ as default value but leave editable for vendors.
Kindly let me know if you need any additional help
-
June 6, 2022 at 3:34 PM #137707Tim KerremansParticipant
Here is the third screenshot
-
June 6, 2022 at 3:42 PM #137709Tim KerremansParticipant
Some additional information about the custom flow:
Once the vendor clicks on a product category when adding a product it will automatically create all attributes and variations. For each variation the vendor is able to set the commission which is calculated in a different way than default like I explained above. This is done by a custom created plugin which overrides default Woocommerce flow. The screenshot I attached in my previous messages are from that plugin
-
June 7, 2022 at 6:36 PM #137742NerdySupportExpert MoumitaKeymaster
@Tim Kerremans, as I can see you have hired our custom team for this project.
It will be better if you can contact them, as they know the coding and assist you accordingly.
-
June 21, 2022 at 3:04 PM #138127Tim KerremansParticipant
This issue has been resolved in the meantime so ticket can be closed 🙂
-
June 22, 2022 at 2:18 PM #138161NerdySupportExpert MoumitaKeymaster
@Tim Kerremans, thanks for the update.
-
-
AuthorPosts
The topic ‘Assign default commission value’ is closed to new replies.