blooparksystems / website

Odoo Website builder related addons
GNU Affero General Public License v3.0
10 stars 33 forks source link

[IMP] Improve shop URLs to be more SEO friendly #57

Open ghost opened 8 years ago

ghost commented 8 years ago

Products are displayed immediately after domain name like: domain.com/Product_Name For product categories, only the name of last level of category is displayed like: domain.com/category/pants Removed concatenated IDs from product and category URLs .

Resolves: #20

jholze commented 8 years ago

@fshahy please check the travis issues.

kaerdsar commented 8 years ago

I tried to install the module but got this error:

ParseError: "Invalid view definition

Error details:
Element '<xpath expr="//a[@t-attf-href='/shop/product/#{ slug(line.product_id.product_tmpl_id) }']">' cannot be located in parent view

Error context:
View `Shopping Cart`
[view_id: 690, xml_id: n/a, model: n/a, parent_id: 667]
None" while parsing None:44, near
<data name="Shopping Cart" inherit_id="website_sale.cart">
            <xpath expr="//a[@t-attf-href='/shop/product/#{ slug(line.product_id.product_tmpl_id) }']" position="replace">
                <a t-attf-href="/#{ slug(line.product_id.product_tmpl_id) }">
                  <strong t-esc="line.product_id.with_context(display_default_code=False).display_name"/>
                </a>
            </xpath>
        </data>
kaerdsar commented 8 years ago

Good. I could install the module fine.

I found two errors doing some testing:

1. Steps to reproduce:

Expected behavior:

2: Steps to reproduce:

Expected behavior:

Please, if you have a chance take a look at them.

ghost commented 8 years ago

@kaerdsar ok, I will check.