mirror of
https://github.com/NaN-tic/flask-galatea_cart-back.git
synced 2023-12-14 02:22:58 +01:00
Crossells. copy new list catalog template field names
This commit is contained in:
parent
a04ec246e8
commit
11ecc15797
1 changed files with 4 additions and 2 deletions
6
cart.py
6
cart.py
|
@ -8,6 +8,7 @@ from flask.ext.babel import gettext as _, lazy_gettext
|
|||
from flask.ext.wtf import Form
|
||||
from wtforms import TextField, SelectField, IntegerField, validators
|
||||
from decimal import Decimal
|
||||
from copy import copy
|
||||
from emailvalid import check_email
|
||||
import vatnumber
|
||||
|
||||
|
@ -636,8 +637,9 @@ def cart_list(lang):
|
|||
template_ids = []
|
||||
for cproduct in carts:
|
||||
template_ids.append(cproduct['template_id'])
|
||||
CATALOG_TEMPLATE_FIELD_NAMES.append('esale_crosssells_by_shop')
|
||||
templates = Template.read(template_ids, CATALOG_TEMPLATE_FIELD_NAMES)
|
||||
template_fields = copy(CATALOG_TEMPLATE_FIELD_NAMES)
|
||||
template_fields.append('esale_crosssells_by_shop')
|
||||
templates = Template.read(template_ids, template_fields)
|
||||
crossells_ids = []
|
||||
for template in templates:
|
||||
for crossell in template['esale_crosssells_by_shop']:
|
||||
|
|
Loading…
Reference in a new issue