1 line
5.7 KiB
XML
1 line
5.7 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" width="640" height="1090" viewBox="0 0 640 1090" role="img" aria-labelledby="title desc"><title id="title">Товар, предложение и цена в Bitrix</title><desc id="desc">Одна родительская карточка товара связана с несколькими предложениями через SKU-свойство. Товарные параметры и цена варианта относятся к offerId, а не productId.</desc><defs><marker id="arrow" markerWidth="9" markerHeight="9" refX="7" refY="4" orient="auto"><path d="M0 0 8 4 0 8" fill="none" stroke="#b64d26" stroke-width="1.6"/></marker><pattern id="hatch" width="9" height="9" patternUnits="userSpaceOnUse"><path d="M-2 2 2-2 M0 9 9 0 M7 11 11 7" stroke="#d8d0c0" stroke-width="2"/></pattern></defs><rect width="640" height="1090" rx="4" fill="#fbf8f1"/><g font-family="Arial,Helvetica,sans-serif" fill="#242824"><text x="32" y="44" font-size="20" font-weight="bold" fill="#b64d26" text-anchor="start" font-family="monospace">03 / BITRIX</text><text x="32" y="87" font-size="33" font-weight="bold" fill="#242824" text-anchor="start">Товар ≠ предложение</text><text x="32" y="122" font-size="24" font-weight="normal" fill="#676961" text-anchor="start">У карточки и варианта разные идентификаторы.</text><path d="M32 148 H608" fill="none" stroke="#d8d0c0" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><rect x="32" y="178" width="576" height="197" rx="10" fill="white" stroke="#d8d0c0" stroke-width="2"/><text x="54" y="215" font-size="22" font-weight="bold" fill="#b64d26" text-anchor="start">ИНФОБЛОК ТОВАРОВ</text><path d="M81 244 l39-17 25 17 26-9 25 44-29 17-12-16 v70 H86 v-70 l-12 16-29-17 25-44 Z" fill="#efe9dd" stroke="#242824" stroke-width="2"/><text x="230" y="263" font-size="30" font-weight="bold" fill="#242824" text-anchor="start">Футболка</text><text x="230" y="302" font-size="27" font-weight="normal" fill="#327057" text-anchor="start" font-family="monospace">productId = 120</text><text x="230" y="340" font-size="25" font-weight="normal" fill="#676961" text-anchor="start">Общее описание</text><path d="M320 376 V414 H170 V455" fill="none" stroke="#b64d26" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arrow)"/><path d="M320 414 H470 V455" fill="none" stroke="#b64d26" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arrow)"/><text x="343" y="404" font-size="24" font-weight="bold" fill="#b64d26" text-anchor="start">1</text><text x="193" y="457" font-size="25" font-weight="bold" fill="#b64d26" text-anchor="start">*</text><text x="493" y="457" font-size="25" font-weight="bold" fill="#b64d26" text-anchor="start">*</text><rect x="32" y="477" width="276" height="187" rx="10" fill="white" stroke="#d8d0c0" stroke-width="2"/><text x="52" y="513" font-size="21" font-weight="bold" fill="#b64d26" text-anchor="start">ПРЕДЛОЖЕНИЕ</text><text x="52" y="554" font-size="28" font-weight="bold" fill="#242824" text-anchor="start">Размер M</text><text x="52" y="593" font-size="25" font-weight="normal" fill="#327057" text-anchor="start" font-family="monospace">offerId = 121</text><text x="52" y="631" font-size="23" font-weight="normal" fill="#242824" text-anchor="start">SKU-свойство: 120</text><rect x="332" y="477" width="276" height="187" rx="10" fill="white" stroke="#d8d0c0" stroke-width="2"/><text x="352" y="513" font-size="21" font-weight="bold" fill="#b64d26" text-anchor="start">ПРЕДЛОЖЕНИЕ</text><text x="352" y="554" font-size="28" font-weight="bold" fill="#242824" text-anchor="start">Размер L</text><text x="352" y="593" font-size="25" font-weight="normal" fill="#327057" text-anchor="start" font-family="monospace">offerId = 122</text><text x="352" y="631" font-size="23" font-weight="normal" fill="#242824" text-anchor="start">SKU-свойство: 120</text><text x="32" y="946" font-size="24" font-weight="normal" fill="#676961" text-anchor="start">SKU_PROPERTY_ID указывает свойство,</text><text x="32" y="983" font-size="24" font-weight="normal" fill="#676961" text-anchor="start">значение свойства — productId товара.</text><path d="M170 666 V714" fill="none" stroke="#b64d26" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arrow)"/><path d="M470 666 V714" fill="none" stroke="#b64d26" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arrow)"/><rect x="32" y="736" width="276" height="155" rx="10" fill="#efe9dd" stroke="#242824" stroke-width="2"/><text x="50" y="775" font-size="25" font-weight="bold" fill="#242824" text-anchor="start">catalog: ID=121</text><text x="50" y="815" font-size="26" font-weight="normal" fill="#327057" text-anchor="start" font-family="monospace">цена:</text><text x="50" y="855" font-size="22" font-weight="normal" fill="#327057" text-anchor="start" font-family="monospace">PRODUCT_ID=121</text><rect x="332" y="736" width="276" height="155" rx="10" fill="#efe9dd" stroke="#242824" stroke-width="2"/><text x="350" y="775" font-size="25" font-weight="bold" fill="#242824" text-anchor="start">catalog: ID=122</text><text x="350" y="815" font-size="26" font-weight="normal" fill="#327057" text-anchor="start" font-family="monospace">цена:</text><text x="350" y="855" font-size="22" font-weight="normal" fill="#327057" text-anchor="start" font-family="monospace">PRODUCT_ID=122</text><text x="32" y="1048" font-size="25" font-weight="normal" fill="#b64d26" text-anchor="start">Для варианта цену записывают по offerId.</text></g></svg> |