dsm1
Forum Replies Created
-
Forum: Plugins
In reply to: [Nice Team] Person refered to as “post”Hi There,
I’m using Storefront.
RegardsForum: Plugins
In reply to: [WooCommerce] Hide Price Range when variance selectedI know, it’s just getting the code to work!
I have modified added CSS to display: none; on both DIVs but the script doesn’t seem to kick in as, you’ve guessed it, it hides both prices….
My js is:$(document).ready(function() { if($("woocommerce-variation-price").hasClass("woocommerce-variation-price")) { $("HBDRange").fadeIn("fast"); } else if($("HBDRange").hasClass("HBDRange")) { $("woocommerce-variation-price").fadeIn("fast"); } });Forum: Plugins
In reply to: [WooCommerce] Hide Price Range when variance selectedAh, so in brief, just to simplify; I have added my own class which is nowhere else in any of the stylesheets. So I have now set it up so all I need is:
If <div class=”woocommerce-variation-price”> then hide <div class=”HBDRange”>
For those following this, I added my own class to the range area by adding a class to Line 26 of \woocommerce\templates\single-product\price.php, it looks like this:
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
So I made it this:
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="HBDRange">
I hope this helps, next bit I need to do is to do is as explained above, get one to hide when the other is visible.Forum: Plugins
In reply to: [WooCommerce] Hide Price Range when variance selectedI’m happy to code 🙂 – I just prefer plugins otherwise code often needs re-doing after an upgrade! Having said that though, I am after whatever works!
Any ideas as to where the code can be modified? I have a look and all I could find was in \woocommerce\includes\wc-formatting-functions.php:
$return = '<span class="woocommerce-Price-amount amount">' . $formatted_price . '</span>';This line (426) seems to pull up the variance range of prices and the variance price itself…. – This is where I got stuck….
Many Thanks
Forum: Plugins
In reply to: [WooCommerce] Set Featured Image Link BrokenSolved it was the Woocommerce Short-codes plugin causing the error. Deleted plugin.
Forum: Plugins
In reply to: [WordPress Full Screen Search Overlay] Target a button instead of input boxForum: Plugins
In reply to: [WordPress Full Screen Search Overlay] Stop using WordPress' default searchResolved; go to:
\assets\js\full-screen-search.jsModify line 7:
Original:
$( 'form[role=search] input, form[role=search] button' ).on( 'focus, click', function( event ) {
Change:
$( 'form[id=yith-ajaxsearchform] input, form[id=yith-ajaxsearchform] button' ).on( 'focus, click', function( event ) {The HTML:
<form>is the main tag,<form role="search">for example.
I changed it to the<form id="yith-ajaxsearchform">to set the trigger. So you could make this a button by<a href="">Search</a>You’re welcome.
Forum: Themes and Templates
In reply to: Drop Down not workingWorks, thanks
Forum: Plugins
In reply to: [WP eCommerce] Control Default View, Grid View etc. in shortcodeIt took me a while too, but once you know all will make sense, simply go to Settings > Store > Presentation > Show Search and tick all the boxes including Advanced search etc. Refresh the page and the function now works, but the problem I have from here is the bar that appears as a result of enabling the search shows when I use a shortcode on other pages so I get content appear then underneath I get this bar with a 100% width then the products and it doesn’t look right… whatever theme I switch to!
Forum: Plugins
In reply to: [WP eCommerce] Control Default View, Grid View etc. in shortcodeHi Justin, function works great, just one issue, the bar with the customize view options and search on it which appears on the products page appears when I use shortcode, currently, I use this shortcode in a marquee and as you can imagine the bar marquees with the featured category, how can I disable this bar in shortcode? Otherwise all is fine.
Forum: Plugins
In reply to: [WP eCommerce] Control Default View, Grid View etc. in shortcodeForum: Plugins
In reply to: [WP eCommerce] Control Default View, Grid View etc. in shortcode@bobspalding it doesn’t look like there is a category on the end of the example url have you tried using the view-type on the end of the url you want to change?
Forum: Plugins
In reply to: [WP eCommerce] Control Default View, Grid View etc. in shortcodeI am having the same problem
Forum: Everything else WordPress
In reply to: Is my WordPress fourm account being ignored?OK, this explains a lot, I had a fear that I was invisible on the fourms. thanks WPyogi, you helped a lot!
Forum: Plugins
In reply to: WP-E Commerce Product Image helpGot it! I had a modified /wp-content/plugins/wp-e-commerce/wpsc-theme/wpsc-single_product.php file, just restore to default if you come across this problem.