Forum Replies Created

Viewing 15 posts - 16 through 30 (of 40 total)
  • Posted in:
  • in reply to: Change Free price (not the banner) #137746
    jonorenton
    Member
    Post count: 40

    Excellent! Would you be able to tell me what you changed just to I know for future reference? I would ideally like to have the Not For Sale just below the title – but I’m happy to sort that if yo can point me in the right direction.

    Thanks so much Mohammad and the rest of the team. I wish you all a very Merry Christmas and a Happy New Year!

    in reply to: Change Free price (not the banner) #137737
    jonorenton
    Member
    Post count: 40

    That’s great! Everytime I want a ‘Not For Sale’ product then I can just set the price as 0 and it will show up as Not For Sale on the product from now?

    Thanks Mohammad!

    in reply to: Change Free price (not the banner) #137728
    jonorenton
    Member
    Post count: 40
    This reply has been marked as private.
    in reply to: Change Free price (not the banner) #137726
    jonorenton
    Member
    Post count: 40
    This reply has been marked as private.
    in reply to: Change Free price (not the banner) #137603
    jonorenton
    Member
    Post count: 40

    That’s not what you said the first time 😀

    It seems I have already changed that bit of code to

    <p itemprop="price" class="price"><?php the_title();?> <?php echo $product->get_price_html(); ?></p>

    So that the price is below the title and both are above the description of the product.

    What I’m wanting is just the word ‘Free!’ to be changed to ‘Not For Sale’ not the prices on every page – only on the products which are technically free.

    Hope that makes sense.

    What I’m trying to achieve is that I can upload a product, set the price as £0 and instead of Free it says Not For Sale which I’ve achieved with the mini banner on the thumb, but not on the product page itself.

    Thank you – You guys work so hard!

    in reply to: Change Free price (not the banner) #137598
    jonorenton
    Member
    Post count: 40

    Opened content-product.php and I can’t find that snippet. What would I edit if I did find it? Thanks for your time 🙂

    in reply to: Change Free price (not the banner) #137514
    jonorenton
    Member
    Post count: 40
    This reply has been marked as private.
    in reply to: Change Free price (not the banner) #137508
    jonorenton
    Member
    Post count: 40

    In content-product.php I changed

    if (is_out_of_stock()) {
    						
    				echo '<span class="out-of-stock-badge">' . __( 'Sold', 'swiftframework' ) . '</span>';
    		
    			} else if ($product->is_on_sale()) {
    				
    				echo apply_filters('woocommerce_sale_flash', '<span class="onsale">'. __( 'Sale!', 'swiftframework' ).'</span>', $post, $product);		
    						
    			} else if (!$product->get_price()) {
    				
    				echo '<span class="free-badge">' . __( 'NFS', 'swiftframework' ) . '</span>';

    and then in product-image.php I have changed to

    if (is_out_of_stock()) {
    				
    			echo '<span class="out-of-stock-badge">' . __( 'Sold', 'swiftframework' ) . '</span>';
    		
    		} else if ($product->is_on_sale()) {
    				
    			echo apply_filters('woocommerce_sale_flash', '<span class="onsale">'.__( 'Sale!', 'swiftframework' ).'</span>', $post, $product);
    				
    		} else if (!$product->get_price()) {
    			
    			echo '<span class="free-badge">' . __( 'NFS', 'swiftframework' ) . '</span>';
    in reply to: Product page questions #135419
    jonorenton
    Member
    Post count: 40

    Perfect! And I assume I can remove the hyphen from the php snippet from above.

    Another very quick question: I always add custom CSS via the appearance editor then adding bits to the bottom of the style.css. Only the other day did I notice a box in your Swift settings to add custom CSS. Does it do the same thing?

    Cheers!

    Have a nice day Kyle 🙂

    in reply to: Product page questions #135402
    jonorenton
    Member
    Post count: 40
    This reply has been marked as private.
    in reply to: Product page questions #135389
    jonorenton
    Member
    Post count: 40

    Hello there, sorry to join to an existing thread.

    Regarding mokadeco‘s first question; Is it possible to place the price below the title? rather than being next to it following a hyphen. I’m just unsure of what html codes such as <br> you can use in a php file.

    Thank you very much 🙂

    Have a super day

    in reply to: Catalalogue/Catagory thumbnails #127071
    jonorenton
    Member
    Post count: 40

    Okay good, as long as I know it’s possible then that’s fine.

    Thanks for your help!
    Have a lovely day

    in reply to: Catalalogue/Catagory thumbnails #127061
    jonorenton
    Member
    Post count: 40

    Hi Kyle,

    Is it something I can hire a developer to change? Or is it completely impossible?

    Thanks 🙂

    in reply to: Shop grid quantity #127050
    jonorenton
    Member
    Post count: 40

    Would you be able to point me in the right direction? Is it the theme CSS that I’d need to hire a developer for, or is it more closely related to WooCommerce than your theme?
    Thank you

    in reply to: Shop grid quantity #126948
    jonorenton
    Member
    Post count: 40

    That’s a real shame, but thanks for trying!

    Have a nice day 🙂

    Jono

Viewing 15 posts - 16 through 30 (of 40 total)