• Hello there,

    May I ask if thecartpress has a feature to make products on sale, and in the frontend it would display an icon that the product is on sale or a price is slashed showing the old price.

    Or if this would be an additional feature on the upcomming updates?

    I think that this can be a great feature for all e-commerce websites

    Thanks in advance!!!

    https://www.ads-software.com/plugins/thecartpress/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Inigo Gonzalez

    (@inigoini)

    Hi,

    Using TheCartPress discount plugin (https://www.ads-software.com/plugins/discounts-for-thecartpress/)

    and try adding this code in appearance/custom javascript:

    jQuery( function() {
    var item = jQuery( ‘.tcp-product-discount’ ).parents( ‘.tcp-grid-item’).addClass( ‘tcp-on-sale’ ),
    div = jQuery( ‘<div/>’, { class : ‘tcp-on-sale-image’ } ).appendTo( item );
    div.html( ‘SALE’ );
    div.css( {
    position: ‘absolute’,
    top: ‘0px’,
    right: ‘0px’,
    width: ’50px’,
    height : ’50px’,
    ‘line-height’ : ’50px’,
    ‘background-color’: ‘red’,
    ‘text-align’: ‘center’,
    ‘vertical-align’ : ‘middle’,
    color : ‘white’,
    ‘font-size’ : ‘1.5em’,
    ‘-ms-transform’: ‘rotate(35deg)’, /* IE 9 */
    ‘-webkit-transform’: ‘rotate(35deg)’, /* Chrome, Safari, Opera */
    transform: ‘rotate(35deg)’,
    ‘border-radius’: ‘50%’,
    } );
    } );

    Best regards

    Thread Starter Paul Adriel

    (@kadesh01)

    Great!!!
    Thanks for these sir.

    However I inserted the code on custom javascript but it appears to be that its not working. I currently have rocketthemes in my site.

    Regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Products on Sale’ is closed to new replies.