WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Smart Sale Badge
[resolved] Hook for use in custom theme? (6 posts)

  1. mazecreative
    Member
    Posted 9 months ago #

    Great plugin, but just wondered if there was a hook to use it in a theme I've built? Basically I have a sale price, then 'our price', and wanted to follow that with 'X% saved'.

    Thanks

    http://wordpress.org/extend/plugins/woocommerce-smart-sale-badge/

  2. DualCube
    Member
    Posted 9 months ago #

    Hi,

    It shouldn't be much of a problem to use the extension in its present form even if you custom created the theme as we too have used few extensions in past. The main issue seems that you require a customized extension in order to display all 3.

    Regards

  3. Hugh Lashbrooke
    Member
    Plugin Author

    Posted 9 months ago #

    This plugin simply modifies the text that WooCommerce supplies in the sale badge - it is not built to display that text anywhere else, so you will need to look elsewhere for that kind of functionality (or just code it yourself).

    To integrate this plugin into your theme you will need to make sure you use the sale badge that is generated by WooCommerce - this plugin will then modify the text in that badge automatically.

  4. mazecreative
    Member
    Posted 9 months ago #

    Thanks for the prompt responses.

    This extension/plugin works fine and as expected, but I don't want the saving badge to appear over the image. I want it in with the product price on the product page.

    Basically, my client wants each product to display a 'retail price', then his price, then below the automatically calculated amount or percentage saved. I was hoping to modify this plugin to drop the savings badge under the product price on the product page basically. I've attempted to code it myself but I'm a HTML/CSS man and only know basic PHP.

    Is this possible with this or any other WC extension or natively within WC?

    Sorry for such a broad question!

  5. Hugh Lashbrooke
    Member
    Plugin Author

    Posted 9 months ago #

    You'll need to customise the WooCommerce templates in your theme. This is not a WooCommerce support channel so I won't help you with that here, but this should help get you started: http://docs.woothemes.com/document/template-structure/

  6. DualCube
    Member
    Posted 9 months ago #

    Hi,

    Thanks for the reply. I am afraid if there exists an extension all these 3 requirements. You can achieve this by customizing the default Woo template. We are Affiliated Woo Workers and we would happy to assist you with this. Kindly reach us out at admin@dualcube.com so that we can discuss further.

    Regards

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.