Forum Replies Created
-
AuthorPosts
-
jarvoParticipant
Thanks @aaronkine that could be useful!
CheersjarvoParticipantThanks for checking
The Add A Product form is merely a replacement of your WC Vendor Pro form, so you add a product in exactly the same way. I’ll check the DB on your product fields and compare them to one add via my form to see if anything is incorrect
If I could create the amount of logic through the WC Vendor Pro form, I would have gone this route.
Thanks again!
jarvoParticipantThanks Ben
I’ve tried that and still to no avail
Is it something you can take a look at if I send you any details (WP Login or FTP)
jarvoParticipantAh! It was my colleague, he copied the site off to work through disabling plugins to suss out the Mark Shipped issue – hence the http://www.wcvendors.com copy
My apologies, all sorted now!
jarvoParticipantThanks Ben and apologies for misusing the set private reply. Due to the client wanting us to sign NDAs, I felt I couldn’t openly share the URLs
Thanks for the heads up on the 404s
Ok, so I’ve created a test product on the site and it works as I would expect, yet on mine with the exact same settings for shipping it won’t allow it
For my own sanity, I’ve checked my DB and can see the serialised array in _wcv_shipping_rates and it seems to match the previous example you sent.
On the demo I’ve simply added UK, left State and put a price
If I enter UK and leave State and Zip blank on the demo site, it detects the shipping – the same as my site
If I enter UK a State and Postcode on the demo, it detects the shipping – on mine, it then won’t workAm at a total loss
jarvoParticipantFinally worked out it was to do with this plugin we also used: WooCommerce Sequential Order Numbers
Disabled and now Mark Shipped works!
Hopefully, this may help someone else
jarvoParticipantOMG! Facepalm!! Thanks so much
jarvoParticipantThanks Ben
So when it comes to someone leaving feedback, the order needs to be complete, if a payment is made, the status remains as processing
How does a vendor therefore mark a sale complete so the buyer can then leave feedback?
jarvoParticipantRight, if I add a product with the shipping as per the below:
UK (which uses GB as 2 letters)
State left blank
Fee: £5I then add an item to the basket, if I only put the country as United Kingdom, I can calculate the postage
If however, I enter a state (East Sussex) and postcode (BN21 4RL), then it doesn’t workI tried to set this up on the demo site as a test product but couldn’t set country and state specific shipping
Sorry to pester but can you see if this is the case for you?
jarvoParticipantHi Ben
Thanks for your help.
I’ve set up this product which has the same shipping as your example above. Naturally, this works as the address I ship to has East Sussex in
If you then try this one it just has UK but when you try to checkout, you then get the message:
“The seller doesn’t ship to this address. Please contact the seller for more information.”I’ve checked and the serialised array is the correct structure. I’ve got the tick box in WooCommerce>settings>tools checked
Am at a loss on this one as can’t see why it won’t work?
jarvoParticipantOk, so disabling the Subscriptions plugin removes the error 🙁
jarvoParticipantHi
I too have this issue
What is the issue/solution? Is it to do with Woo Subscriptions plugin?
jarvoParticipant@Ben
Are you able to try
a:1:{i:0;a:3:{s:7:"country";s:2:"GB";s:5:"state";s:0:"";s:3:"fee";s:1:"1";}}
And see if that works for you?
jarvoParticipantOk, switched to your array and it works – so now need to see what’s going on!! Darn
jarvoParticipantYep, that’s ticked!
I’ve no other shipping plugins either – odd isn’t it!
jarvoParticipantThanks Ben
That’s exactly what I have:
a:1:{i:0;a:3:{s:7:”country”;s:2:”GB”;s:5:”state”;s:0:””;s:3:”fee”;s:2:”25″;}}Yet if I add to the basket and try to checkout I still get:
“The seller doesn’t ship to this address. Please contact the seller for more information.”We changed the message from the default one
jarvoParticipantOddly it works on yours – so again, guessing this is back down to our site 🙁
jarvoParticipantOk thanks Ben, really appreciate you looking into that for me
Will go check through and see what’s going on.
Out of interest, within your DB, if State is left blank, what do you have? i.e. Empty, Null, 0 etc.
jarvoParticipantHi Ben
You can use
19 Forest Way, Hastings, East Sussex, TN34 1UW
7 Pashley Gardens, Hastings, East Sussex, TN34 1PW
10 Gildredge Road, Eastbourne, East Sussex, BN21 4RLjarvoParticipantThanks @ben
Any chance you can try the UK (2 letter code is GB
Can’t see why its not working you see
Thanks
jarvoParticipantPerfect, thanks muchly
jarvoParticipantHi
Anything else I need to change to get this working?
Apologies chasing but site launch is imminent so it’d be good to sort this
ThanksjarvoParticipantThanks Ben
Even if I changes the ipn would it remain as processing?
Assume its processing until its shipped then you mark as complete?
Apologies if its a basic question but need to get it right as other code hinges on the status
CheersjarvoParticipantHi Facundo
The Pro version of the plugin does include a front end form to add products. Unless you need to do anything super whizzy, it works great.
If you did really want to go your own custom form, I’ve used Formidable Pro (although you have to pay for this plugin), then comes the issue of having to do custom code etc. to ensure the right information gets added.
So in short, if you just want to add a product – go with WC Vendor Pro
If you really have no choice but to go the custom route, I’d highly recommend Formidable Pro (having tried many others)
jarvoParticipantThanks @ben
I need country shipping. However, if o put uk and the 2 letter code, then set the price to £5 it def doesn’t work
I’ve only got wc vendor shipping in use
Do I need to change any other settings?
Thanks againjarvoParticipantThanks @ben
Is there another way then I.e. Not using the country rate table?
Thanks againjarvoParticipantThanks @Ben, however, that doesn’t’ work as the ?r= in the URL remains empty
jarvoParticipantThanks @Ben,
Sadly that didn’t work.
I started to look at the few I had and noticed the punctuation was the issue. Therefore, I’ve come up with the following:
/* WC Vendors Pro - Adds a "Contact Vendor" link on Single Product Pages which uses BuddyPress Private Messages */ add_action('woocommerce_product_meta_start', 'wcv_bppm_woocommerce_product_meta_start'); function wcv_bppm_woocommerce_product_meta_start() { if ( is_user_logged_in() ) { $wcv_store_id = get_the_author_meta('ID'); $wcv_store_name = get_user_meta( $wcv_store_id, 'pv_shop_name', true); $wcv_store_owner = get_the_author_meta('user_login'); #clean and tidy the user login $wcv_store_owner_clean = preg_replace( array("/\@/", "/\./", "/\s/"), array("", "-", "-"), $wcv_store_owner ); #convert new value to lower case $wcv_store_owner_lower = strtolower($wcv_store_owner_clean); #echo '<br/>Contact Store: <a href="' . bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r=' . get_the_author_meta('user_login') .'">Contact ' . $wcv_store_name . '</a><br/>'; echo '<br/>Contact Store: <a href="' . bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r=' . $wcv_store_owner_lower .'">Contact ' . $wcv_store_name . '</a><br/>'; } else { $wcv_my_account_url = get_permalink( get_option('woocommerce_myaccount_page_id')); echo '<br/>Contact Vendor: <a href="' . $wcv_my_account_url . '">Login or Register to Contact Store</a>'; } }
It will need some refinement though as I need to test more user profiles and replace the punctuation accordingly. For the couple I have it seems to work
Do you think this is a suitable approach? It’s annoying as it seems if you go to the members page in buddypress, view the list of members and click message, it works. But I can’t see what they’re using to create the link (as in nicename, username, storename etc)
jarvoParticipantRight!
Thanks again. Anyway to stop them doing that at registration?jarvoParticipantSorry @Ben, I just tried with another user who’s URL looks like messages/compose/?r=The+Persian
And that didn’t work either?
jarvoParticipantAaaaaaaaah! Ok thanks Ben, appreciate the heads up
jarvoParticipantThanks @Ben
Oddly, I do have that in my code. I can see it my URL that it has a value, however, it doesn’t seem to add the username into the Send To field.
The page it’s on also doesn’t look right as it shows my profile page instead. See attached. I’m new to Buddypress so perhaps my understanding/assumption is incorrect?
Any help/pointers are much appreciated though
Thanks
jarvoParticipantWell, this code gives you an attribute:
<?php $application_terms = get_terms('pa_product-applications'); foreach ($application_terms as $application_key => $application_term) : ?> <li><?php echo $i; ?><a href="<?php echo site_url(); ?>/?pa_product-applications=<?php echo $application_term->slug; ?>"><?php echo $application_term->name; ?></a></li> <?php endforeach; ?>
This is for an attribute I had
So you would need to switch that out in the form but make a few alterations and then amend the functions file accordingly
jarvoParticipantAh! I see. Ok, how about a different approach
What template or conditional statement could be used/altered to include this?
For example, as the custom post type has now been removed, does that mean that effectively http://www.domain.com/stores/widgets-and-co/ is actually the author template which simply includes all products by that user ID? Therefore, amending author.php could work
Thanks again
jarvoParticipantThanks Ben,
I can see the functions file declares woo support and the woo template has the right code but still no joy
Does this mean it can’t be done by using those methods?
jarvoParticipantAs a note, it seems to show the header when you’re on a single product but not their main pagemain page
Very odd indeed!
jarvoParticipantThanks for the prompt reply
I have the latter, so themes/youtheme/woocommerce.php
jarvoParticipantYeah that’s what I thought but mine doesn’t seem to do that 🙁
Not sure why either!
I’ve copied the template to my theme. I’ve got a default WooCommerce page in place but no joy
Do I need to do anything else or have some sort of include anywhere?
Cheers
jarvoParticipantCool, glad to be of assistance @ben 🙂
jarvoParticipantOh and these
$address_1 = get_user_meta( $vendor_id, '_wcv_store_address1', true ); echo 'Address: '.$address_1.'<br/>'; $city = get_user_meta( $vendor_id, '_wcv_store_city', true ); echo 'City: '.$city.'<br/>'; $state = get_user_meta( $vendor_id, '_wcv_store_state', true ); echo 'State: '.$state.'<br/>'; $country = get_user_meta( $vendor_id, '_wcv_store_country', true ); echo 'Country: '.$country.'<br/>'; $postcode = get_user_meta( $vendor_id, '_wcv_store_postcode', true ); echo 'Postcode: '.$postcode.'<br/>'; $phone = get_user_meta( $vendor_id, '_wcv_store_phone', true ); echo 'Phone: '.$phone.'<br/>';
jarvoParticipantYou need to add this to the template:
<?php $banner_id = get_user_meta( $vendor_id, '_wcv_store_banner_id', true ); $image_attributes = wp_get_attachment_image_src( $banner_id ); if ( $image_attributes ) : ?> <img src="<?php echo $image_attributes[0]; ?>" width="<?php echo $image_attributes[1]; ?>" height="<?php echo $image_attributes[2]; ?>" /> <?php endif; ?>
jarvoParticipantHi @netteran,
I had the same issue. Ben told me to do the following:
Now you get the luxury of using the [wcv_vendorslist] shortcode if you want to have a display of vendor stores. This is part of WC Vendors Free, we’ll be coding up a better one designed for Pro in the near future. Add it to a page, and if you’re happy with the way it looks (which I doubt) then you’re done.
To tweak the output of the shortcode, copy /plugins/wc-vendors/templates/front/vendor-list.php to /themes/yourtheme-child/wc-vendors/front/vendor-list.php and hack away.
Hope that helps!
jarvoParticipantNice one, thanks Ben I’ll look into hacking through that code
CheersjarvoParticipantThanks Ben
That’s really odd as I know it was showing a list of all stores on that page.
Ok, so if I want to do this, I assume this would be a simple loop? If so, what do we now loop on as it’s not a custom post type any longer. Any pointers here would be much appreciated
As for the search, it’s not a plugin but handled by code 🙂
So this is my search form:
<form role="search" method="get" action="<?php echo get_permalink( woocommerce_get_page_id( 'shop' ) ); ?>"> <div class="row collapse"> <div class="small-6 medium-8 large-9 columns"> <input type="hidden" name="post_type" value="product" /> <input type="text" value="" name="s" id="s" placeholder="<?php esc_attr_e( 'Search for products' ); ?>"> </div> <div class="small-3 medium-2 large-2 columns" id="category-select"> <select name="category"> <?php $taxonomy = 'product_cat'; $orderby = 'name'; $show_count = 0; // 1 for yes, 0 for no $pad_counts = 0; // 1 for yes, 0 for no $hierarchical = 1; // 1 for yes, 0 for no $title = ''; $empty = 0; $args = array( 'taxonomy' => $taxonomy, 'orderby' => $orderby, 'show_count' => $show_count, 'pad_counts' => $pad_counts, 'hierarchical' => $hierarchical, 'title_li' => $title, 'hide_empty' => $empty ); $all_categories = get_categories( $args ); foreach ($all_categories as $cat){ if($cat->category_parent == 0){ $category_id = $cat->term_id; echo '<option value="'. $cat->slug .'">'.$cat->name.' ('.$cat->count.')'; } else { echo "</option>"; } } ?> </select> </div> <div class="small-3 medium-2 large-1 columns" id="search-button"> <input type="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search' ); ?>" class="prefix button"> </div> </div> </form>
Then in the functions file you use:
function advanced_search_query($query) { if($query->is_search()) { // category terms search. if (isset($_GET['category']) && !empty($_GET['category'])) { $query->set('tax_query', array(array( 'taxonomy' => 'product_cat', 'field' => 'slug', 'terms' => array($_GET['category']) ) )); } return $query; } } add_action('pre_get_posts', 'advanced_search_query', 1000);
Cheers
jarvoParticipantThanks Ben
So if I remove the page Stores, how could I create somewhere you click to view all stores (vendors)
Only I’ve tried removing the page and left the slug as stores/
But http://www.clickandswap.com/stores/ doesn’t work you see.
Any help is much appreciated
jarvoParticipantOurs is a custom theme so we followed the template guide here
It was all ok until the upgrade 🙁
jarvoParticipantPoo! Wish I’d seen this before updating as just discovered this issue
Also noticed that if you try to add the info back in as a vendor, when you click save and see the ‘Store Setting Saved’ message, you can’t click Store / Payment / Branding / Social links, you have to navigate away then back
Equally, the Store Description and Seller Info don’t save, they keep being wiped out
jarvoParticipantHi Ben,
I think I’m being stupid!
I’ve updated to the new version of Pro
Under WooCommerce > WC Vendors > General I’ve set the slug to stores/
I’ve resaved the permalinks
I still have a page called stores with the slug stores.
I’ve changed the slug but this didn’t work. I even removed this page but to no avail (in case it was a conflict of names)
But when I browse to my stores page it’s now blank, yet previously, it listed all the stores on the site.
How can I get this back please?
I think I just need to toggle something but can’t see where if this is the case
Thanks
jarvoParticipantAh poop!
Ok, I notice if I tick the Disable product management in pro dashboard. you can still edit products?
Should this not completely remove any product functionality from the front end?
Thanks again
-
AuthorPosts