Support » Plugins » [Plugin : eshop] remove add to cart from product page

  • Resolved ryanpym

    (@ryanpym)


    Hi,

    I am using E shop for a small t shirt company. I have been building a test product page to sort out the layout. the page is here:

    http://copytshirts.co.uk/copy-signature-t-shirt-blue/

    I have used a shortcode to put the add to cart options on the page, but e shop also adds them to the bottom of the page by default. I have been able to remove everything else through the settings but there is no option to remove this. I have tried removing the code from one of the pages for the plugin, but this also affects the short code part.

    I am assuming this may be able to sorted using CSS, but this is a little beyond my experience I can however follow simple instructions if you can help.

    Any assistance would be greatly appreciated.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Since both elements – the grey box to the right of the product image and the grey bar below the image have the same class (eshop addtocart), there’s no way with CSS to hide one without also hiding the other.

    The best workaround is to find which php file is being used to determine the layout and editing the code there to remove the bottom gray bar element.

    I can’t tell you exactly which file that is or what to edit without having access to your site.

    Try adding this to your custom CSS for your theme – don’t change the theme files directly or your changes will be lost when the theme is updated:

    form.eshop {
        display: none;
    }
    
    ul.eshoppanels > li form {
        display: block;
    }

    Thread Starter ryanpym

    (@ryanpym)

    WPyogi I have copied the above code into the Theme CSS and it does not appear to have worked, I also tried to copying into the CSS for the plugin.

    Thanks Kcrusher, I had wondered if this would be the case but I was having difficulty locating the file with the bottom bar element – I guess I will have to keep hunting.

    Thread Starter ryanpym

    (@ryanpym)

    OK so update,

    WPyogi I managed to get your code to work by putting it into the CSS editor in the appearance settings, however, it has now removed the table on the checkout page.

    Do you have any suggestions?

    I really appreciate you assistance, please forgive my lack of ability with CSS.

    Try adding this under what you have:

    .eshopcustdetails form.eshop {
         display: block;
    }

    But this CSS approach is really kind of a clunky work-around – and the eShop folks may be able to give you better advice since they know how the plugin is set up…

    What are you using to find the template for that function?

    The Show Current Template plugin is really useful for this sort of thing. It will list all the template PHP files used on a particular page.

    As a follow up to what WPyogi said – there is usually a way to use Child themes to customize specific files so that they don’t get lost when updating a theme.

    Thread Starter ryanpym

    (@ryanpym)

    Thanks Wpyogi,

    I also added

    .entry-summary form.eshop {
    display: block;
    }

    as I also noticed that the cart was not showing correctly.

    I had already had a glance over the Eshop support forum, they made it pretty clear that they didn’t help people hack the plugin.

    kcrusher, I am not going to lie, I was glancing over all of the files in Cpanel, just stabbing around in the dark. I will definately keep a note of the Show Current Template plugin for the future.

    I agree with both of you that this not the most efficient way of working. I am hoping that this will only be a temporary site, until I can invest for someone who knows what they are doing.

    I really appreciate both of your assistance, you are an asset to this forum.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin : eshop] remove add to cart from product page’ is closed to new replies.