- Posts: 3
- Thank you received: 0
Question about module
11 years 3 months ago #204396
by Santiago
-- HikaShop version -- : 3.0.4
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.4
El cliente quiere colocar el carrito de compras dentro de un producto aca: prntscr.com/7fgq0q
Y lo logré colocar ejecutando ese módulo dentro del producto por medio de: "components/com_hikashop/views/product/tmpl/show_default.php" agregué la siguiente lineas: prntscr.com/7fgtjq
Así estoy ejecutando el módulo dentro del HTML del componente del producto, pero sucede un problema, es el siguiente:
1- Cuando ingreso a un producto y lo añadó al carrito de compras: prntscr.com/7fgud7
2- Si ese mismo producto selecciono una talla diferente, debería de cambiar la referencia y al agregarse al carrito debería de agregarse como un producto "diferente" y no sucede, pasa esto: prntscr.com/7fgv5m Agrega el producto como si no hubiese cambiado el tallaje. Esto sucede por ejecutar el módulo dentro del html del componente del producto.
Si desactivo el módulo que está dentro del producto de Hikashop, ya funciona bien:
1- prntscr.com/7fgvtt
2- prntscr.com/7fgw5m
Ya si cambió la referencia arriba, incluso si voy al carrito de compras están los 2 productos en sus diferentes tallajes:
3- prntscr.com/7fgx7f
Este módulo es posible ejecutarlo donde lo estoy ejecutando pero que funcione el cambio de referencia como si no estuviera activo?
==================================
The customer wants to place the cart in a product here: prntscr.com/7fgq0q
And I managed to put running this module within the product through "components / com_hikashop / views / product / tmpl / show_default.php" I added the following lines: prntscr.com/7fgtjq
So I am running the module into the HTML component of the product, but it happens a problem, is as follows:
1- When entering a product and add to shopping cart: prntscr.com/7fgud7
2. If the same product select a different size, change the reference should and should add to cart added as a "different" and does not happen, product passes this: Make the product as prntscr.com/7fgv5m if it had not changed size. This happens to run the module into the html of product component.
If I turn off the module that is inside the product HikaShop, and works well:
1- prntscr.com/7fgvtt
2- prntscr.com/7fgw5m
And if you changed the above reference, even if I go to shopping cart are 2 products in different carvings:
3- prntscr.com/7fgx7f
This module can run where I'm running but run the reference exchange as if he was not active?
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.4
El cliente quiere colocar el carrito de compras dentro de un producto aca: prntscr.com/7fgq0q
Y lo logré colocar ejecutando ese módulo dentro del producto por medio de: "components/com_hikashop/views/product/tmpl/show_default.php" agregué la siguiente lineas: prntscr.com/7fgtjq
Así estoy ejecutando el módulo dentro del HTML del componente del producto, pero sucede un problema, es el siguiente:
1- Cuando ingreso a un producto y lo añadó al carrito de compras: prntscr.com/7fgud7
2- Si ese mismo producto selecciono una talla diferente, debería de cambiar la referencia y al agregarse al carrito debería de agregarse como un producto "diferente" y no sucede, pasa esto: prntscr.com/7fgv5m Agrega el producto como si no hubiese cambiado el tallaje. Esto sucede por ejecutar el módulo dentro del html del componente del producto.
Si desactivo el módulo que está dentro del producto de Hikashop, ya funciona bien:
1- prntscr.com/7fgvtt
2- prntscr.com/7fgw5m
Ya si cambió la referencia arriba, incluso si voy al carrito de compras están los 2 productos en sus diferentes tallajes:
3- prntscr.com/7fgx7f
Este módulo es posible ejecutarlo donde lo estoy ejecutando pero que funcione el cambio de referencia como si no estuviera activo?
==================================
The customer wants to place the cart in a product here: prntscr.com/7fgq0q
And I managed to put running this module within the product through "components / com_hikashop / views / product / tmpl / show_default.php" I added the following lines: prntscr.com/7fgtjq
So I am running the module into the HTML component of the product, but it happens a problem, is as follows:
1- When entering a product and add to shopping cart: prntscr.com/7fgud7
2. If the same product select a different size, change the reference should and should add to cart added as a "different" and does not happen, product passes this: Make the product as prntscr.com/7fgv5m if it had not changed size. This happens to run the module into the html of product component.
If I turn off the module that is inside the product HikaShop, and works well:
1- prntscr.com/7fgvtt
2- prntscr.com/7fgw5m
And if you changed the above reference, even if I go to shopping cart are 2 products in different carvings:
3- prntscr.com/7fgx7f
This module can run where I'm running but run the reference exchange as if he was not active?
Please Log in or Create an account to join the conversation.
11 years 3 months ago #204421
by nicolas
Hi,
That's normal. The cart module has its own form and the product page two. And you're not supposed to have a form inside a form in HTML. If you do, you'll have troubles.
So you shouldn't do your customization of the layout like that.
That's normal. The cart module has its own form and the product page two. And you're not supposed to have a form inside a form in HTML. If you do, you'll have troubles.
So you shouldn't do your customization of the layout like that.
Please Log in or Create an account to join the conversation.
Time to create page: 0.189 seconds