BuddyBoss Home – Web › Support Forums › Themes › OneSocial theme › URGENT: Templates changes not working (I'm using WCVendors)
- This topic has 22 replies, 2 contibutors, and was last updated 8 years, 8 months ago by Anonymous.
Question
February 28, 2016 at 9:50 am #60563@conscious-craftiesHi Varun and Tom @tomchedd
The changes I have previously made to the WCVendors product-edit.php templates aren’t appearing since changing over to the One Social theme. Most WCVendor customers make amendments to the vendor forms by copying their templates into their theme folders and making changes.
This is my post in the WCVendors forum:
I’ve copied over my amended templates from my old theme into One Social CHILD theme.
However they don’t seem to be working as all my changes within my product-edit.php aren’t appearing in the Vendor product listing form.
I copied product-edit.php from my old theme and added it to the one social child theme here:
/public_html/wp-content/themes/onesocial-child/wc-vendors/dashboard/product-edit.phpI also tried (just in case) adding it to the parent One Social theme here:
/public_html/wp-content/themes/onesocial/wc-vendors/dashboard/product-edit.phpBut still no joy 🙁
What have I done wrong?Then Ben from WCVendors responded with this:
Good question! I don’t know is the answer. Social Marketplace uses a plugin to handle theme overrides, you’ll want to ask them how to handle what you need now. I’m interested in knowing the answer too.Could you tell me asap what I need to do to get your theme to read my changes as it’s pretty important changes for my vendors.
Many thanks,
Karen
Answers
February 28, 2016 at 10:41 am #60564@
Anonymouswp-content/plugins/buddyboss-marketplace/templates/wc-vendors/dashboard/product-edit.php
that file is in action
You can override it inside child theme like below
onesocial-child/wc-vendors/dashboard/product-edit.phpRegards
February 28, 2016 at 6:30 pm #60624@conscious-craftiesHi Varun,
I’m not sure if you read my note above but I’ve already copied it to:
/public_html/wp-content/themes/onesocial-child/wc-vendors/dashboard/product-edit.php
But it’s not working.
Also the form field ‘Tags’ is missing from my product edit form – which is a standard field on the product edit WCVendors form 🙁
Karen
February 28, 2016 at 6:33 pm #60626@conscious-craftiesAlso my Vendors are not able to add Linked Products when listing their products 🙁
I’m having lots of complaints, please can you resolve asap
February 29, 2016 at 3:09 am #60653@conscious-craftiesWhat might help you resolve part of this, is knowing that both the Linked products and Tags are the same type of field, so maybe they are working but just aren’t displayed, because the theme doesn’t support it perhaps?
The fields allows users to start typing and relevant products of tags appear in a list for users to select. I’m not sure of the technical term for field sorry! But I’ve attached a screenshot of how it used to look – hope it helps.
Many thanks,
Karen
February 29, 2016 at 3:14 am #60656@conscious-craftiesAs my template issue is urgent, I’ve going to do what I shouldn’t do and override my template changes in the original WCVendors file.
(please see comment above to help with displaying the missing form fields).
Thanks,
Karen
February 29, 2016 at 3:36 am #60673@conscious-craftiesFor info this is the help guide on WCVendors for overriding their templates in themes:
February 29, 2016 at 3:46 am #60687@conscious-craftiesWow, even overriding the main template under plug ins hasn’t pulled in my changes.
The only changes I have made to the original template are a few paragraph text under fields like this:
<p><small>Your product name should include keywords and be <b>under 70 characters</b>, thank you :)</small></p>
And a new custom text field:
<?php WCVendors_Pro_Form_Helper::input( array( 'type' => 'text', 'post_id' => $object_id, 'id' => 'wcv_custom_product_handmade', 'label' => __( 'Number of Days to Hand Make', 'wcvendors-pro' ), 'placeholder' => __( 'Enter ONLY A NUMBER here for the quantity of days your item takes to make, if it is already made simply leave BLANK', 'wcvendors-pro' ), 'desc_tip' => 'true', 'description' => __( 'Remember to allow time for any sickness', 'wcvendors-pro' ), ) ); ?>
So maybe the amended templates within themes ARE being picked up, but your theme isn’t supporting additional paragraph text or custom fields.
Hope that helps you resolve more quickly,
Thanks,
Karen
February 29, 2016 at 6:03 am #60728@
AnonymousPlease send your login details from our contact page, we will add corresponding edits inside the marketplace plugin
includes/main-class.php
following need to be$located = wc_locate_template( $template_name, $this->templates_dir, $this->templates_dir.'/wc-vendors/dashboard/' );
replaced with
$located = wc_locate_template( $template_name, 'wc-vendors/dashboard/', $this->templates_dir.'/wc-vendors/dashboard/' );
for each conditional check inside bm_filter_template()
Regards
February 29, 2016 at 7:19 am #60735@conscious-craftiesThank you Varun, will this solve all the issues on the Product-Edit form mentioned in this thread?:
1. Searchable scrollable fields not displaying (Tags and Linked Products)
2. Custom Paragraph text not displaying
3. Custom text field not displayingI have just sent my contact details via your Contact Form.
I did notice that your contact form page is not secure. Ben and Jamie from WVVendors use a plug in on their forum for users to mark their reply as private for when we send them Admin log in details. So you may want to look into that. If I wasn’t desperate to get this fixed I wouldn’t have normally added my admin log in details to an unsecure form.
Thanks,
Karen
February 29, 2016 at 8:43 am #60763@
Anonymousthanks for your input, we will enable https on our contact page and also consider private topic option.
RegardsFebruary 29, 2016 at 9:37 am #60770@conscious-craftiesGreat thanks Varun 🙂
Do you know when a developer will be free to do the changes on my site?
Many thanks,
KarenFebruary 29, 2016 at 11:46 am #60783@conscious-craftiesHi Varun,
Thank you my paragraph text is now displaying 🙂
However for some reason it appears in red font, so looks like an error message rather than text to help the Vendor. Do you know why it now appears in red font? (see screenshot)My custom field is now displaying thanks very much. Although it’s missing the help text under the Handmade field ‘Remember to allow time for any sickness’. This now only displays if users click on the information icon. Then it displays in a dark grey box with blank writing so the user can’t read it (see screenshot).
Also more importantly, the Tags and Linked products fields still aren’t displaying 🙁
Karen
March 1, 2016 at 10:33 pm #60991@conscious-craftiesI’m bumping this one as it’s my most urgent issue because Vendors cannot add all the information when listing products.
Thank you for your help,
Karen
March 2, 2016 at 2:18 pm #61147@conscious-crafties@tomchedd and @vapvarun
With regards to the Tags and Upsell fields not displaying for Vendors on the Add Edit product form, Ben from WCVendors has confirmed that tags and upsells are not working in your theme. They briefly appear, but are hiding as a result of some CSS or something like that. You can confirm by going to the add/edit product page, and not seeing tags or upsells visible on your own website too. It’s not a bug in WC Vendors, but a bug in the Marketplace theme’s CSS or something related to its display.
Also the background colour of the help tool tip on the Handmade custom field would be CSS, so could you kindly fix this too?
Many thanks,
Karen
- The question ‘URGENT: Templates changes not working (I'm using WCVendors)’ is closed to new replies.