Comments (6)
Hello,
thanks for reporting this issue. I fixed both, the PHP error and the documentation link. Available in the next branch, will be released with v3.2.2.
Sincerely,
Sam.
from oc-mall-plugin.
This fix will be released in v3.2.2.
from oc-mall-plugin.
You can overwrite the partial within your theme and remove the oldPrice part in the mentioned file.
{% set price = price|default(item.price()) %}
{% if price.official or item.oldPrice() %}
<div class="mall-product__old-price">
{% if price.official %}
{{ price.official.string|raw }}
{% else %}
{# item.oldPrice().string|raw #}
{% endif %}
</div>
{% endif %}
<div class="mall-product__current-price">
{% partial __SELF__ ~ '::currentprice' price=price.string %}
</div>
from oc-mall-plugin.
Fixed in next branch, released in v3.3.1.
from oc-mall-plugin.
In our case, we had no records under Settings > Price Categories
simply because we started with a fresh installation. A temporary fix until 3.2.2 is release is:
- Create new record under
Settings > Price Categories
- Make sure
code
is set toold_price
( notold-price
) - Keep it enabled as suggested by @dathwa
from oc-mall-plugin.
Hello @tobias-kuendig .
Mall 3.3.0. After disabling "Old Price", I'm seeing this error on front end...
development.ERROR: Twig\Error\RuntimeError: Impossible to access an attribute ("integer") on a null variable in "\plugins/offline/mall/components/product/price.htm" at line 3. in \vendor\twig\twig\src\Extension\CoreExtension.php:1510
This happens when CMS_STRICT_VARIABLES=true
Thanks
from oc-mall-plugin.
Related Issues (20)
- Missing data for Invoice order partial HOT 1
- Indirect modification of overloaded property October\Rain\Element\ElementHolder::$missing_file_hint has no effect HOT 1
- \MallComponent::decode(): Argument #1 ($value) must be of type string, null given, called in \components\Product.php on line 44 HOT 4
- "Illegal offset type" on line 105 of ~/app/plugins/offline/mall/classes/traits/CustomFields.php HOT 1
- An exception has been thrown during the rendering of a template HOT 12
- Discount per quantity purchased
- Add quantity input close to "add to cart button" on the category page
- Error when create new product Call to a member function mapWithKeys() on array HOT 1
- Missing recordsPerPage and showSearch customergroups/config_relation.yaml HOT 1
- Missing default values in component \offline\mall\components\product\customfields\text.htm for CMS_STRICT_VARIABLES=true HOT 2
- Can't update to Rainlab\User V3.0 HOT 4
- Which Version of the Plugin is Compatible with Winter CMS? HOT 1
- Allow PaymentGatewaySettings to be different between multisites HOT 2
- Free products error. DivisionByZeroError: Division by zero in /offline/mall/classes/pricing/concerns/ApplyDiscounts.php:37 HOT 1
- Column not found: 1054 Unknown column 'download_count' in 'field list' (SQL: update `system_files` set `download_count` = `download_count` + 1,... HOT 2
- Wrong price if price start with 0. and has more than 2 decimal example: 0.4567 HOT 2
- Virtual downloads broken on 3.2.1 HOT 1
- Something like a InvoiceGatewayProvider or EERP / CRM Connections.
- Can't update to 3.3.0 HOT 7
- Call to undefined method October\Rain\Database\Relations\BelongsTo::all() HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oc-mall-plugin.