V1.7 (MODULE) Combination images as textures

n1ghtdem0n

Member
XNullUser
Joined
Nov 17, 2021
Messages
75
Reaction score
4
Points
8
NullCash
19


Combination images as textures PrestaShop 1.7 module​

Take the first image of every combination as textures, this module can save you a lot of time of uploading texture images one by one.

DEMO

Installation​

1. Use the "Upload a module" button on "BO > Modules" page to install the module.
2. Modify the \themes\your-theme-name\templates\catalog\_partials\product-variants.tpl file to add this code

Code:
{if isset($st_attr_img_as_texture) && isset($st_attr_img_as_texture[$id_attribute_group][$id_attribute])}{$group_attribute.texture=$st_attr_img_as_texture[$id_attribute_group][$id_attribute]}{$group_attribute.html_color_code=''}{/if}

Right above this one

Code:
{if $group_attribute.texture}
                    class="color texture" style="background-image: url({$group_attribute.texture})"
                  {elseif $group_attribute.html_color_code}
                    class="color" style="background-color: {$group_attribute.html_color_code}"
                  {/if}
You may need to clear the Smarty cache to make the modification work.

Should look like on the photo

code.png


Screenshots​

screen.jpgscreen2.jpg
 

Attachments

  • stprothumbgroup-3.zip
    25.7 KB · Views: 7

d-shilko

Well-known member
Pro
Master
Diamond
Elite
Joined
Jun 10, 2021
Messages
2,495
Reaction score
1,421
Points
113
NullCash
6,140

Combination images as textures PrestaShop 1.7 module​

Take the first image of every combination as textures, this module can save you a lot of time of uploading texture images one by one.

DEMO

Installation​

1. Use the "Upload a module" button on "BO > Modules" page to install the module.
2. Modify the \themes\your-theme-name\templates\catalog\_partials\product-variants.tpl file to add this code

Code:
{if isset($st_attr_img_as_texture) && isset($st_attr_img_as_texture[$id_attribute_group][$id_attribute])}{$group_attribute.texture=$st_attr_img_as_texture[$id_attribute_group][$id_attribute]}{$group_attribute.html_color_code=''}{/if}

Right above this one

Code:
{if $group_attribute.texture}
                    class="color texture" style="background-image: url({$group_attribute.texture})"
                  {elseif $group_attribute.html_color_code}
                    class="color" style="background-color: {$group_attribute.html_color_code}"
                  {/if}
You may need to clear the Smarty cache to make the modification work.

Should look like on the photo

View attachment 37687


Screenshots​

View attachment 37688View attachment 37689
Hello new cheater.
This is free here
 

srsacek

Member
XNullUser
Joined
Nov 28, 2021
Messages
110
Reaction score
8
Points
18
NullCash
16
thanks
 

freiserk

Well-known member
Pro
Master
Diamond
Elite
Joined
Jan 24, 2019
Messages
3,462
Reaction score
6,453
Points
113
NullCash
35,097

d-shilko

Well-known member
Pro
Master
Diamond
Elite
Joined
Jun 10, 2021
Messages
2,495
Reaction score
1,421
Points
113
NullCash
6,140

n1ghtdem0n

Member
XNullUser
Joined
Nov 17, 2021
Messages
75
Reaction score
4
Points
8
NullCash
19

d-shilko

Well-known member
Pro
Master
Diamond
Elite
Joined
Jun 10, 2021
Messages
2,495
Reaction score
1,421
Points
113
NullCash
6,140
Hello Mr. "clairvoyant",

I didn't say its paid or cracked by me. I saw that this module is not shared before here and I shared according to users requirements
What is wrong i didn't understand?
I thought this forum was to help each other...

Take care,

Goodbye
Don't angry bro.
If you good member that had read rules you should add link of module page. Your behaver same with other cheater that try earn nullcash whether by the post in question or by spam. Real members that try to help use other way. It is honesty contribution and real help with actions.
Many users support me because we are tired to "fight" with cheaters.

Greetings.
 

moonfire

Well-known member
Diamond
Elite
XNullUser
Joined
May 3, 2021
Messages
941
Reaction score
298
Points
63
NullCash
1,153
Hello Mr. "clairvoyant",

I didn't say its paid or cracked by me. I saw that this module is not shared before here and I shared according to users requirements
What is wrong i didn't understand?
I thought this forum was to help each other...

Take care,

Goodbye!
If it is a free module we don't download it and upload it here.
If it is free and want to tip our fellow friends here on the forum we post a description of the module and a link to it. And ofcourse the link shouldn't require a "Like" to be visible.
 

kickhat

Member
XNullUser
Joined
Nov 29, 2021
Messages
64
Reaction score
2
Points
8
NullCash
33
its doesnt work for me. Prestashop 1.7.8.1 anyone can help me, guys?1664743230571.png
Post automatically merged:

Second picture when you can see choose. ?
Post automatically merged:

1664743549928.png
 
Last edited:

fahrenheit

Member
XNullUser
Joined
Nov 7, 2021
Messages
114
Reaction score
0
Points
16
NullCash
0
That`s a gorgeous module! thanks for your help, now my store is more beautiful
 

buddystime

Member
XNullUser
Joined
Jan 23, 2020
Messages
458
Reaction score
1
Points
18
NullCash
4
tahnks for sharing this module i will try now , thank you
 

dreeashy

Member
XNullUser
Joined
Apr 10, 2021
Messages
433
Reaction score
0
Points
16
NullCash
623
I couldn't have picked out a better gift for myself if I tried.
 
Top