V1.7 (MODULE) Combination images as textures

n1ghtdem0n

Member
XNullUser
Joined
Nov 17, 2021
Messages
83
Reaction score
6
Points
8
NullCash
69


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: 10

d-shilko

Well-known member
☆☆ Special ☆☆
☆ Pro ☆
Joined
Jun 10, 2021
Messages
2,538
Reaction score
1,525
Points
113
NullCash
4,772

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
☆☆ Special ☆☆
☆ Pro ☆
Master
Joined
Jan 24, 2019
Messages
3,494
Reaction score
6,545
Points
113
NullCash
33,665

d-shilko

Well-known member
☆☆ Special ☆☆
☆ Pro ☆
Joined
Jun 10, 2021
Messages
2,538
Reaction score
1,525
Points
113
NullCash
4,772

n1ghtdem0n

Member
XNullUser
Joined
Nov 17, 2021
Messages
83
Reaction score
6
Points
8
NullCash
69

d-shilko

Well-known member
☆☆ Special ☆☆
☆ Pro ☆
Joined
Jun 10, 2021
Messages
2,538
Reaction score
1,525
Points
113
NullCash
4,772
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
304
Points
63
NullCash
1,195
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
71
Reaction score
3
Points
8
NullCash
8
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
500
Reaction score
1
Points
18
NullCash
0
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.
 

deighvtisss

Member
XNullUser
Joined
Jan 19, 2022
Messages
291
Reaction score
0
Points
16
NullCash
6
Je n'aurais pas pu choisir un meilleur cadeau pour moi-même si j'avais essayé.
 

bzshow

New member
XNullUser
Joined
May 7, 2022
Messages
25
Reaction score
0
Points
1
NullCash
22
thanks for share this module, I will test it on my site, thanks.
 

Camelo

Member
XNullUser
Joined
May 25, 2021
Messages
192
Reaction score
4
Points
18
Location
Tunisia
NullCash
8
thanks for share this module, I will test it on my site, thanks.
 
Top