Digital experiences for all disciplines
Forum Replies Created
-
-
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!
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!
This reply has been marked as private.This reply has been marked as private.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!
Opened content-product.php and I can’t find that snippet. What would I edit if I did find it? Thanks for your time 🙂
This reply has been marked as private.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>';
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 🙂
This reply has been marked as private.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
Okay good, as long as I know it’s possible then that’s fine.
Thanks for your help!
Have a lovely dayHi Kyle,
Is it something I can hire a developer to change? Or is it completely impossible?
Thanks 🙂
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 youThat’s a real shame, but thanks for trying!
Have a nice day 🙂
Jono
-
Posted in: Reply To: Shop grid quantity