Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] theme_bookstore: fix multiple issues in the theme #972

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions theme_bookstore/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,10 @@
],
'images_preview_theme': {
'website.s_product_list_default_image_1': '/theme_bookstore/static/src/img/snippets/s_product_1.jpg',
'website.s_banner_default_image_3': '/theme_bookstore/static/src/img/snippets/s_banner_3.jpg',
'website.s_image_text_default_image': '/theme_bookstore/static/src/img/snippets/s_image_text.jpg',
'website.library_image_02': '/theme_bookstore/static/src/img/snippets/library_image_02.jpg',
'website.s_cover_default_image': '/theme_bookstore/static/src/img/snippets/s_cover.jpg',
'website.s_media_list_default_image_1': '/theme_bookstore/static/src/img/snippets/s_media_list_1.jpg',
'website.s_image_text_default_image': '/theme_bookstore/static/src/img/snippets/s_image_text.jpg',
'website.s_media_list_default_image_2': '/theme_bookstore/static/src/img/snippets/s_media_list_2.jpg',
'website.s_text_image_default_image': '/theme_bookstore/static/src/img/snippets/s_text_image.jpg',
},
Expand Down
46 changes: 11 additions & 35 deletions theme_bookstore/static/description/theme_bookstore.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions theme_bookstore/views/snippets/s_accordion.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@
We accept returns within 30 days of purchase, provided the book is in its original condition and accompanied by the receipt. Refunds will be issued in the original form of payment. Please note that certain items, like discounted or final sale items, may not be eligible for return.
</xpath>
<!-- Question 2 -->
<xpath expr="(//div[hasclass('accordion-item')])[1]//span" position="replace" mode="inner">
<xpath expr="(//div[hasclass('accordion-item')])[2]//span" position="replace" mode="inner">
Do you offer gift cards?
</xpath>
<xpath expr="(//div[hasclass('accordion-item')])[1]//p" position="replace" mode="inner">
<xpath expr="(//div[hasclass('accordion-item')])[2]//p" position="replace" mode="inner">
Yes, we offer both physical and digital gift cards in various amounts. Physical gift cards can be purchased in-store or online and shipped to the recipient, while digital gift cards are sent instantly via email. Both types can be used for online and in-store purchases.
</xpath>
<!-- Question 3 -->
<xpath expr="(//div[hasclass('accordion-item')])[1]//span" position="replace" mode="inner">
<xpath expr="(//div[hasclass('accordion-item')])[3]//span" position="replace" mode="inner">
Can I request a book that's out of stock?
</xpath>
<xpath expr="(//div[hasclass('accordion-item')])[1]//p" position="replace" mode="inner">
<xpath expr="(//div[hasclass('accordion-item')])[3]//p" position="replace" mode="inner">
Absolutely! If a book is out of stock, you can place a special order through our website or by visiting the store. We'll notify you once the book is back in stock, and you can choose to pick it up in-store or have it shipped to your address. Special orders typically take 1-2 weeks to fulfill, depending on availability.
</xpath>
</template>
Expand Down
2 changes: 1 addition & 1 deletion theme_bookstore/views/snippets/s_accordion_image.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</xpath>
<!-- Paragraph -->
<xpath expr="//p[hasclass('lead')]" position="replace" mode="inner">
Find quick answers to common questions about our books, services, and policies.
Find quick answers to common questions about our books, services and policies.
</xpath>
</template>

Expand Down
16 changes: 11 additions & 5 deletions theme_bookstore/views/snippets/s_banner.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" remove="pb96" add="pb128" separator=" "/>
<attribute name="data-oe-shape-data">{'shape':'web_editor/Origins/14_001', 'colors':{'c3':'o-color-3','c4':'o-color-4'}, 'flip':[]}</attribute>
</xpath>
<!-- Shape -->
<xpath expr="//div[hasclass('container')]" position="before">
<div class="o_we_shape o_web_editor_Origins_14_001" style="background-image: url('/web_editor/shape/web_editor/Origins/14_001.svg?c3=o-color-3&amp;c4=o-color-4')"/>
</xpath>
<!-- Title -->
<xpath expr="//h1" position="replace" mode="inner">
Expand All @@ -32,4 +27,15 @@
</xpath>
</template>

<template id="configurator_s_banner" inherit_id="website.configurator_s_banner">
<!-- Shape option -->
<xpath expr="section" position="attributes">
<attribute name="data-oe-shape-data">{'shape':'web_editor/Origins/14_001', 'colors':{'c3':'o-color-3','c4':'o-color-4'}, 'flip':[]}</attribute>
</xpath>
<!-- Shape -->
<xpath expr="//div[hasclass('container')]" position="before">
<div class="o_we_shape o_web_editor_Origins_14_001" style="background-image: url('/web_editor/shape/web_editor/Origins/14_001.svg?c3=o-color-3&amp;c4=o-color-4')"/>
</xpath>
</template>

</odoo>
6 changes: 1 addition & 5 deletions theme_bookstore/views/snippets/s_cover.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<template id="s_cover" inherit_id="website.s_cover">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="oe_img_bg o_full_screen_height" remove="parallax s_parallax_is_fixed bg-black-50" separator=" "/>
<attribute name="class" add="oe_img_bg o_full_screen_height" remove="parallax s_parallax_is_fixed" separator=" "/>
<attribute name="data-scroll-background-ratio">0</attribute>
<attribute name="data-oe-shape-data">{'shape':'web_editor/Origins/09_001', 'colors':{'c3':'o-color-1'}}</attribute>
<attribute name="style">background-image: url('/web/image/website.s_cover_default_image'); background-position: 50% 55%;</attribute>
Expand All @@ -23,10 +23,6 @@
<xpath expr="//p[hasclass('lead')]" position="replace" mode="inner">
<br/>
</xpath>
<!-- Button -->
<xpath expr="//a[hasclass('btn')]/t" position="replace" mode="inner">
Discover more
</xpath>
</template>

</odoo>
16 changes: 11 additions & 5 deletions theme_bookstore/views/snippets/s_cta_box.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" remove="pt80 pb80" add="o_colored_level o_cc o_cc2 pt48 pb48" separator=" "/>
<attribute name="data-oe-shape-data">{'shape':'web_editor/Origins/04_001', 'colors':{'c3':'o-color-4'}}</attribute>
</xpath>
<!-- Shape -->
<xpath expr="//div[hasclass('container')]" position="before">
<div class="o_we_shape o_web_editor_Origins_04_001" style="background-image: url('/web_editor/shape/web_editor/Origins/04_001.svg?c3=o-color-4');"/>
</xpath>
<!-- Title -->
<xpath expr="//h2" position="replace">
Expand All @@ -25,4 +20,15 @@
</xpath>
</template>

<template id="configurator_s_cta_box" inherit_id="website.configurator_s_cta_box">
<!-- Shape option -->
<xpath expr="section" position="attributes">
<attribute name="data-oe-shape-data">{'shape':'web_editor/Origins/04_001', 'colors':{'c3':'o-color-4'}}</attribute>
</xpath>
<!-- Shape -->
<xpath expr="//div[hasclass('container')]" position="before">
<div class="o_we_shape o_web_editor_Origins_04_001" style="background-image: url('/web_editor/shape/web_editor/Origins/04_001.svg?c3=o-color-4');"/>
</xpath>
</template>

</odoo>
2 changes: 1 addition & 1 deletion theme_bookstore/views/snippets/s_features_wall.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</xpath>
<!-- Lead -->
<xpath expr="//p[hasclass('lead')]" position="replace" mode="inner">
We also offer these additional services, always with the same passion and care that defines everything we do.
We also offer these additional services, always with the same passion and care that define everything we do.
</xpath>
<!-- Card 1 -->
<xpath expr="//div[hasclass('g-col-lg-3')]//h3" position="replace" mode="inner">
Expand Down
2 changes: 1 addition & 1 deletion theme_bookstore/views/snippets/s_key_images.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</xpath>
<xpath expr="(//div[hasclass('col-lg-3')])[4]//p[3]" position="replace">
<h5>What I Didn't Post On Instagram</h5>
<p class="text-muted">by <em>Christy Stockton</em></p>
<p class="text-muted">by <em>Chrissy Stockton</em></p>
</xpath>
</template>

Expand Down
5 changes: 0 additions & 5 deletions theme_bookstore/views/snippets/s_showcase.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="pt128 pb128 o_cc o_cc5" remove="pt48 pb48" separator=" "/>
<attribute name="data-oe-shape-data">{'shape':'web_editor/Origins/11_001', 'colors':{'c3':'o-color-4','c4':'o-color-5'}, 'flip':['y']}</attribute>
</xpath>
<!-- Shape -->
<xpath expr="//div[hasclass('container')]" position="before">
<div class="o_we_shape o_web_editor_Origins_11_001" style="background-image: url('/web_editor/shape/web_editor/Origins/11_001.svg?c3=o-color-4&amp;c4=o-color-5&amp;flip=y'); background-position: 0% 100%;"/>
</xpath>
<!-- Title -->
<xpath expr="//h3" position="replace" mode="inner">
Expand Down
16 changes: 11 additions & 5 deletions theme_bookstore/views/snippets/s_title.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,28 @@
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="pt152 pb152 o_cc o_cc5" remove="pt40 pb40" separator=" "/>
<attribute name="data-oe-shape-data">{'shape':'web_editor/Origins/11_001','colors':{'c3':'o-color-4','c4':'o-color-5'},'flip':['y']}</attribute>
<attribute name="style">background-image: url('/web/image/website.s_text_cover_default_image'); background-position: 50% 75%;</attribute>
</xpath>
<!-- Filter -->
<xpath expr="//div[hasclass('container')]" position="before">
<div class="o_we_bg_filter bg-black-50"/>
</xpath>
<!-- Shape -->
<xpath expr="//div[hasclass('container')]" position="before">
<div class="o_we_shape o_web_editor_Origins_11_001" style="background-image: url('/web_editor/shape/web_editor/Origins/11_001.svg?c3=o-color-4&amp;c4=o-color-5&amp;flip=y'); background-position: 50% 100%;"/>
</xpath>
<!-- Title -->
<xpath expr="//h2" position="replace">
<h2 class="display-3-fs">The most beautiful things in the world cannot be seen or touched, they are felt with the heart.</h2>
<p>— Antoine de Saint-Exupéry</p>
</xpath>
</template>

<template id="configurator_s_title" inherit_id="website.configurator_s_title">
<!-- Shape option -->
<xpath expr="section" position="attributes">
<attribute name="data-oe-shape-data">{'shape':'web_editor/Origins/11_001','colors':{'c3':'o-color-4','c4':'o-color-5'},'flip':['y']}</attribute>
</xpath>
<!-- Shape -->
<xpath expr="//div[hasclass('container')]" position="before">
<div class="o_we_shape o_web_editor_Origins_11_001" style="background-image: url('/web_editor/shape/web_editor/Origins/11_001.svg?c3=o-color-4&amp;c4=o-color-5&amp;flip=y'); background-position: 50% 100%;"/>
</xpath>
</template>

</odoo>