Jump to content

<solved> Modify the "Advanced configurator for customized product" Module


Recommended Posts

Hello dear community,

i am hopefull you can help me to solve a problem.

I work with the modul "Advanced configurator for customized product" to to give our customers the opportunity to put their own fotos & images on glassdoors & glass pictures.

You can see here: https://www.glastueren24.de/tuergestaltung/glastuer-designer/

Now i try to modify the modul for a other thing, we want to do the same for laser engraving for the same product. But it will be much better if the preview of the picture can be transformed to black & white like you see here https://www.lasermemories.de/schieferplatte-dieses-haus-bewacht-mit-kordel-mit-eigenem-bild-las-2030k-wach-dog1-1230000.html

I find that css rule:

img {
  -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
  filter: grayscale(100%);
}

But i don't know how to implement it in that way that as a option, so that only some products use that rule and other products like foto print are still coloured.

Can anyone help me please?

 

I thank you very much : )

Best regards

Daniel

 

 

Edited by Glasdesign2000 (see edit history)
Link to comment
Share on other sites

a) providing a paid module in a public forum for free downloading is very bad. the developer will thank you very much. remove that!
b) try

.ctd_image_preview {
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%); 
    -o-filter: grayscale(100%);
    filter: grayscale(100%);
}

 

Link to comment
Share on other sites

Hi, (again)

but still have the problem, if i implement it in that way, the module use it for all products. We have few products using this modul and only one part of the should be used for lasers. The Fotoprint Products should use the preview whith colored images.

Can you please help me to solve this problem, too?

Thank you very much for help & have a great day

Greets Daniel

Link to comment
Share on other sites

If you want to have this only on certain products i would extend the product.tpl, like

{if $product->id == 4711}
<style>
.ctd_image_preview {
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%); 
    -o-filter: grayscale(100%);
    filter: grayscale(100%);
}
</style>
{/if}

alternate it would work with javascript and the query of the product id in the body class but I would have to try it myself

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...