Forum Replies Created
-
AuthorPosts
-
Marc Bovet
ParticipantDear Anna,
do you maybe know how to get the order id ?I’ve tried but without success :
add_filter( 'woocommerce_email_headers', 'custom_vendor_notify_order', 10, 3); function custom_vendor_notify_order( $headers, $email, $order) { $vendor_id = get_post_field( 'post_author', $order-id ); }
any idea ?
Thanks !Marc Bovet
ParticipantHi Anna,
Ok, attributes and variations are ok for me but attributes alone was unclear. Thank you for your explanation.Cheers,
Marc
Marc Bovet
Participant@fervous,
Anna,
oh yes I forgot to add a sale price 🙂 sorry for that.
but anyway, there is no options displayed to select the attribute during the purchase process.http://dev.wcvendors.com/shop/uncategorized/attr-2/
http://dev.wcvendors.com/dashboard/product/edit/9860/
any idea ?
cheers,
Marc Bovet
Participant@fervous,
Anna,
I totally agree with you that with persistence and work you’ll solve this issue. “Don’t ever give up” 🙂
In fact, it seems that you have to split the cart as many vendors are in the cart and calculate the shipping fees for each vendor depending on the business logic setup by each vendor, you have to split the order in sub-orders.
Woocommerce local pickup and flate_rate override this as it concerns the global order and not the sub-order (vendors sub-order) only. I understand better Jamie’s position. Seems that you have to derive the Woocommerce shipping class completely to make it work for each vendor, then each vendor could choose, local pickup, flat rate, country rate, free shipping, as an Woocommerce admin setups its shipping methods.I saw yesterday that WC Vendors shipping class is present in the checkout page but is hidden and not available to customer.
cheers,
Marc Bovet
Participant@fervous,
hello Anna,
it’s very frustrating when something was working fine during months and it’s now broken. I just added a localpickup method without a fee and this method was showed to the customer.“localpickup” has less option than “free shipping”. I use this method to allow the customer to pickup the order by himself without charging a fee. This method is very common and offered by a lot of webshops.
For various reasons, my marketplace does not allow more than one vendor in the cart and I do not use Stripe to automatically reverse commissions and shipping costs to the vendors as it is too complicated for a vendor to create a stripe account,…Nevermind, I’ve just created all the needed methods (2x flat-rates, free shipping, localpickup,…) in woocommerce, added an ACF to the dashboard settings to allow the vendor to add its own delivery postcodes. The standard woo shipping methods are now displayed to the customer depending on my business logic.
Just took 3days of work…. 😉WC vendors is able to offer various vendors in the cart, calculate shipping costs per vendor with different rules, calculate commissions and do much much more fantastic things. I cannot figure me out why a customer cannot tell a vendor “I’ll pick up the goods I’ve ordered in your webshop”, maybe something I did not understood yet.
cheers
Marc Bovet
Participant@fervous,
Thank you for your follow-up. Unfortunately, your answer is not satisfactory.Marc Bovet
Participant@fervous,
do you have any update on this subject ? shipping methods affects the checkout process and is vital for an e-commerce website.
I fear that the issue comes from Woocommerce and that no quick solution will be found.
cheers,Marc Bovet
ParticipantWith previous versions of WC vendors it was possible to use the standard local pickup shipping method of Woocommerce.
Now it seems that if some shippig methods are declared in Woocommerce then Wc vendor shipping method are overridden.
I do not understand why, and why we were not informed of such change ?
Is it possible to overcome that ? if yes how ?cheers,
Marc
Marc Bovet
Participantuse a webprinter and send the order to the email address of your printer.
Marc Bovet
Participant@fervous, @ben,
Hello,
How can we make this work. I’ve tried to switch to country table rate but the issue remains the same.
It seems that the country table rate is completely not working…It’s urgent to make this work.
Thank you for your help,
Cheers
Marc Bovet
Participant@fervous,
Hello Anna,
Thank you for your answer.
No problem, I’ve tried to give you as much of information as possible.As it was possible with previous versions of WC vendors, I want to be able to mix shiping methods :
– WC Vendor shipping method at all
AND
– WC shipping methods (Local pickup for example or Free shipping or Flat Rate)From my point of view, WC Vendors is “just” an extra shipping method and should be compliant with other Shipping methods.
Thank you for your help.
Cheers,Marc
Marc Bovet
ParticipantHi Stefan,
Do you have some shipping zones with shipping methods set in Woocommerce ?
Woocommerce – Settings – Shipping – Shipping zonesCheers,
Marc Bovet
ParticipantDear Anna,
When I am adding a new shipping zone for example :
“Shipping Zones – My Country – Local Pickup” to allow a customer to Pick up its delivery directly to the vendor, then “Vendor Shipping” is removed from the available shipping methods.This was working with previous versions.
Can you help please ?
Cheers,
May 31, 2017 at 12:54 am in reply to: Free shipping order / Free shipping product not working #66803Marc Bovet
Participant@cakecompare
Hi Stefan,It seems to work better if
Default National Shipping Fee
The default shipping fee within your country, this can be overridden on a per product basis.is set to 1 instead of the default value.
I’ll continue to make tests,Cheers,
May 31, 2017 at 12:20 am in reply to: Free shipping order / Free shipping product not working #66802Marc Bovet
ParticipantHi Anna, the same here I cannot setup this to make it work…
Free shipping when XX is reached is not displayed…
Vendor shipping fees are even not calculated..WC 3.0.7
WP 4.7.5
WC Vendors PRO : 1.4.3
WC Vendors : 1.9.11
Storefront ThemeCheers,
MarcMarc Bovet
ParticipantFound a solution to get all bookable products of a vendor.
https://gist.github.com/marcbovet/545b90487c8d244f629591e6da0e8a79
Marc Bovet
Participantfyi,some strings remains untranslated (see attached picture).
MarcMarc Bovet
Participant@fervous
Please find attached the french translaton of your plugin.
rename file extension from .jpg to .zipcheers
May 24, 2017 at 3:27 am in reply to: Restrict client/Buyer to order from one vendor at a time #66298Marc Bovet
Participantnot sure to understand by “have your got it completely ? like M said”….
if emtying the cart is not compliant with your user experience, I let you improve my code.
It’s working as expected on my website with an without variable products.Kind Regards,
Marc
May 12, 2017 at 3:23 am in reply to: Restrict client/Buyer to order from one vendor at a time #64987Marc Bovet
ParticipantMay 12, 2017 at 1:25 am in reply to: Restrict client/Buyer to order from one vendor at a time #64983Marc Bovet
Participant@ALIB
I’ll try to sort this out
MarcMarc Bovet
Participantyep ! that’s great ! thank you very much !
Marc Bovet
ParticipantMarc Bovet
ParticipantHi Anna,
Thank you for your answers.
2. Not sure why you should be able to have access to all registered user ?
Adding a record with current logged in vendor or as a “guest” could be great.cheers,
Marc Bovet
Participant@fervous
Dear Anna,Congrats for this new plugin ! That’s great !
On you dev site, Internal Server Error when trying to place the order…cheers,
Marc
Marc Bovet
ParticipantMarch 29, 2017 at 4:06 am in reply to: Restrict client/Buyer to order from one vendor at a time #60236Marc Bovet
ParticipantHi Nexus,
Maybe something like this (untested) ?
add_filter( 'woocommerce_add_cart_item_data', 'woo_custom_add_to_cart' ); function woo_custom_add_to_cart( $cart_item_data ) { global $woocommerce; $items = $woocommerce->cart->get_cart(); //getting cart items $_product = array(); foreach($items as $item => $values) { $_product[] = $values['data']->post; break; //after 1st product we can stop the loop } if(isset($_product[0]->ID)){ //getting first item from cart if ($_product[0]->is_type('variable')){ //check if product is a variation $available_variations = $product->get_available_variations(); foreach ($available_variations as $key => $value) { $product_id_in_cart= $value['variation_id']; break; //get first variation of product } } else //simple product { $product_id_in_cart = $_product[0]->ID; } $product_in_cart_vendor_id = get_post_field( 'post_author', $product_id_in_cart); //get vendor id from cart. $prodId = (int) apply_filters( 'woocommerce_add_to_cart_product_id', $_GET['add-to-cart'] ); //get last item added to cart $product_added = wc_get_product( $productId ); //get product from ID if ($product_added->is_type('variable')){ //check if product is a variation $available_variations = $product->get_available_variations(); foreach ($available_variations as $key => $value) { $product_id_added= $value['variation_id']; break; //get first variation of product } } else //simple product { $product_id_added = $prodId; } $product_added_vendor_id = get_post_field( 'post_author', $product_id_added ); if( $product_in_cart_vendor_id !== $product_added_vendor_id ){$woocommerce->cart->empty_cart();wc_add_notice( __("You can only order items from 1 shop !", "wcvendors"));} return $cart_item_data; } }
HTH
Marc Bovet
ParticipantAnother question about coupons.
Can a vendor print coupons?
Can a vendor send an email to customer with coupon data ?
Can the admin manage vendors coupons ?You’ve got a small “bug” in the PRO dashboard.
If woocommerce coupons is disabled and you keep WC Vendors Coupons management activated, the “Add Coupon” button appears, but the tab “Coupons” is hidden. 😉Marc Bovet
Participant@fervous
Hi Anna,Damn ! I could make it work !
Cannot work if I disable Woocommerce coupons !
Go to: WooCommerce > Settings > Checkout to enable coupons🙂
Cheers !
Marc Bovet
Participant@fervous,
ok serverpress is installed and now ? What shall I do ?Marc Bovet
ParticipantHi Anna,
I’ll install serverpress, but is there a specific tool to use as I do not know this product ?
The dev site looks strange because of the WP Globus Strings.
Cheers,Marc
Marc Bovet
ParticipantHi Anna
I ll setup another test site
And keep you informed
CheersMarc Bovet
ParticipantHi Anna,
Yes I have activated theme storefront “standard”, deactivated the WP Globus Plugins + and all others.. without success.
you can connect to the PRO Dashboard with the following credentials
http://www.swisstakeaway.ch/test (pwd: Aston007)
Vendor :
restaurant1
123456Back End : http://www.swisstakeaway.ch/test/adminbackend
bjkk_sys__margaux2
marc30828If you have any other idea ?
The Add coupon appears but gives me a 404 error. The tab does not show.cheers,
Marc Bovet
Participant@ben
finally it will be a blowdie day 🙂Marc Bovet
ParticipantAnna,
1. Coupon Management is enabled
2. Disabled my translating plugins (WP Globus + LocoTranslate) : no changesWhat’s next ? 🙂
Marc Bovet
Participant:-))
fantastic !Marc Bovet
Participant@mustardseedit
Hi Sri,I use ACF, it’s working well, their support is great.
I also would like to know when the bookings extension will be done.
@fervous Is there any BETA available ?Kind Regards,
Marc Bovet
Participant@fervous
Hi Anna,Ok, thank you for your feedback.
I’ll use filters to hide unwanted fields.Cheers,
Marc
Marc Bovet
Participantthank you Anna !
Marc Bovet
ParticipantHi,
My website is available in 3 languages, english, german and french, languages are powered by WP Globus.
When a customer visits the website in german, he receives the order confirmation in german. That’s great.
The vendor receives the order confirmation in german as well, unfortunately he does not understand any word of german…Since the latest version of WP, a user can select it’s prefered language.
My 2 questions are :
1. how can I display the language selector on the vendor’s dashboard ?2. how can I notify the vendor of a new order in it’s prefered language ?
Kind Regards,
Marc
Marc Bovet
ParticipantHi Joe,
unfortunately not, but this could be adapted I think.
vendor 1 :
item 1.1
item 1.2
…vendor 2
item 2.1
item 2.2
…
Subtotal :shipping fees
flat rate vendor 1 : $$$
flat rate vendor 2 : $$$
Total shippings :You have to make trials and adapt the code.
HTH
cheers,Marc Bovet
ParticipantMarc Bovet
ParticipantAnna, @fervous
thank you.
What would be the url of my shop ? http://www.mywebsite.com/shop/ ?cheers,
Marc Bovet
Participant6. Manually.. go to wp admin > woocommerce > commissions and mark that order as PAID rather than due.
This should be done automatically by WC Vendors when the payment method is Cash on Delivery. I’ll not have the time to manage this manually.
Could be done via code ? Where to start ? Any documentation ?
Marc
Marc Bovet
ParticipantHi Anna,
Thank you for your reply.
2. export to CSV, option is unchecked in the backend but the button is displayed ?
Regards,
Marc
Marc Bovet
Participantany tip or snippet to help to get started ?
marc
Marc Bovet
ParticipantHi Jamie,
Thank you for your answer.
Everything was buggy with WPML…. WC vendors Pro Dashboard, redirected to homepage when I was switching the language, cart was emptied when I was changing the language in the checkout or cart page….As their support forum was not available (broken link) and that WC vendors is not in their compliant plugins, I gave up and asked for a refund.
I’ll continue with WP globus, it’s more expensive, less powerfull but at least it’s working (in fact I was intresed in their module for Yoast + ACF translation, etc).
Cheers,
Marc
Marc Bovet
Participant@fervous
Dear Anna,Thank you for the link, very helpfull.
On the dashboard settings, the vendor can choose values below 0. Ok I can live with that because when the vendor tries to save its settings the the data-error message is correctly displayed and the settings are not saved.BUT,
the save button is disabled and even if the vendor changes the value to an authorized one, the save button remains disabled and the settings cannot be saved.
I am using storefont theme.WCVendors_Pro_Form_Helper::input( array( 'id' => $key, 'label' => __( 'Minimum order amount', 'wcvendors-pro' ), 'placeholder' => __( 'Orders below this amount are not allowed by the vendor', 'wcvendors-pro' ), 'desc_tip' => 'true', 'description' => __( 'Set the minimum oder amount', 'wcvendors-pro' ), 'type' => 'number', 'value' => $value, 'class' => 'wcv-disable-national-input', 'custom_attributes' => array( 'data-rules' => 'integer|range[0,500]', 'data-error' => __( 'Minimum order amount should be a number and between 0 and 500', 'wcvendors-pro' ) )) );
Any tip ?
Marc Bovet
Participantany tip ?
For example, how to set the minimum value for a number(min value = 5).Thank you for your help,
Marc
Marc Bovet
Participant -
AuthorPosts