Forum Replies Created
-
AuthorPosts
-
Joshua GradyParticipant
Thanks!
Joshua GradyParticipantAnna –
I am using some code in functions.php that Benjamin gave me and altered it to my fee rate:
/* WC Vendors Pro — No % for commission, just a tiered fee structure */
add_filter( ‘wcv_commission_rate’, ‘my_wcv_commission_rate’, 10, 5 );
function my_wcv_commission_rate( $commission, $product_id, $product_price, $order, $qty ) {// First, reduce price to qty1 to do calculations
$product_price = $product_price / $qty;// Second, run through the price and apply the right commission fee
if ( $product_price > 48.99 ) {
$commission_fee = 3.36;
} elseif ( $product_price >= 42.00 && $product_price <= 48.99 ) {
$commission_fee = 2.94;
} elseif ( $product_price >= 35.00 && $product_price <= 41.99 ) {
$commission_fee = 2.52;
} elseif ( $product_price >= 28.00 && $product_price <= 34.99 ) {
$commission_fee = 2.10;
} elseif ( $product_price >= 21.00 && $product_price <= 27.99 ) {
$commission_fee = 1.68;
} elseif ( $product_price >= 14.00 && $product_price <= 20.99 ) {
$commission_fee = 1.26;
} elseif ( $product_price >= 7.00 && $product_price <= 13.99 ) {
$commission_fee = 0.84;
} elseif ( $product_price >= 0.00 && $product_price <= 6.99 ) {
$commission_fee = 0.42;
}// Third, set the commission to price – fee, since this is just a
// deduction no percentages are applied
$commission = $product_price – $commission_fee;// Fourth, play it safe by setting to 0 if it’s negative
if ( $commission < 0 ) $commission = 0;// Fifth, round it so there’s no half pennies
$commission = round( $commission * $qty, 2 );// Finally, return the commssion total per product.
return $commission;
}– So if I modified that code, do I still need a default?
Joshua GradyParticipantForget it ! Found them!!
PayPal Sandbox account…
Joshua GradyParticipantAlso, while trying to choose Parallel Payments the form states it is deprecated?
Thanks!
Joshua GradyParticipantReading through the site to find helpful info on setting up Paypal Gateway and how fees work.
I currently have code added to my functions.php that overrides the fees to be set at either 5,10,15 or 25 based on the price range of the item sold.
Do i ALSO have to have a default rate set? If so, Its not very clear to me exactly how to set the default to $5.
Thanks!
Joshua GradyParticipantJust an update – Works perfectly! Thank you so much!
Joshua GradyParticipantGreat – Also, would the directory be /wc-vendors/ OR /wc-vendors-pro/ because I am using pro?
Thanks!!
Joshua GradyParticipantI just wanted to question this. If you are using WCV Pro, should the directory then be:
themes/onesocial-child/bb-marketplace/wc-vendors-pro/dashboard/product-edit.php ??
Joshua GradyParticipantThanks so much! Ill give this a shot tomorrow!
I was reading the Template Mod link, Can I assume I should be copying the buddyboss marketplace templates seeing I am using WCV PRo and One Social Marketplace?
Thanks!
Joshua GradyParticipantNadav –
Was this ever resolved with OneSocial? I am interested in purchasing – but I question support…
Joshua GradyParticipantThanks Ben! Can I add-
I am running the Divi 3.0 Theme any issues with this? I want to buy Pro – However, I tried Dokan and it would not pull up the Categories or Attributes – Should this run ok and will it pull admin defined Attributes natively as pictured in the Pro Demo or doe sit require modification?
I want Vendors to be able to choose from Color, Size etc with their postings.
Thanks!
-
AuthorPosts