[ofbiz-plugins] branch trunk updated: Fixed: Unable to add product to cart in ecommence (OFBIZ-11899)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ofbiz-plugins] branch trunk updated: Fixed: Unable to add product to cart in ecommence (OFBIZ-11899)

James Yong-2
This is an automated email from the ASF dual-hosted git repository.

jamesyong pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 2989420  Fixed: Unable to add product to cart in ecommence (OFBIZ-11899)
2989420 is described below

commit 29894202949bedf8b8870f969dc4ee5284e9fc2f
Author: James Yong <[hidden email]>
AuthorDate: Sun Aug 9 22:09:25 2020 +0800

    Fixed: Unable to add product to cart in ecommence (OFBIZ-11899)
   
    Incorrect markup in ConfigProductDetail.ftl affected jsoup (when multi-block=true) to parse and output the file correctly. Let me know if not fixed.
   
    Thanks: Jacques for reporting
---
 ecommerce/template/catalog/ConfigProductDetail.ftl | 5 +----
 ecommerce/widget/CatalogScreens.xml                | 2 +-
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/ecommerce/template/catalog/ConfigProductDetail.ftl b/ecommerce/template/catalog/ConfigProductDetail.ftl
index 385d837..8096c3f 100644
--- a/ecommerce/template/catalog/ConfigProductDetail.ftl
+++ b/ecommerce/template/catalog/ConfigProductDetail.ftl
@@ -339,10 +339,7 @@ ${virtualJavaScript!}
             </#if>
           </#if>
         </#if>
-      </td>
-    </tr>
-    <tr>
-      <td>
+
       <#-- check to see if introductionDate hasn't passed yet -->
       <#if product.introductionDate?? && nowTimestamp.before(product.introductionDate)>
         <p>&nbsp;</p>
diff --git a/ecommerce/widget/CatalogScreens.xml b/ecommerce/widget/CatalogScreens.xml
index a4ddeef..e162984 100644
--- a/ecommerce/widget/CatalogScreens.xml
+++ b/ecommerce/widget/CatalogScreens.xml
@@ -325,7 +325,7 @@ under the License.
             </actions>
             <widgets>
                 <include-screen name="breadcrumbs"/>
-                <platform-specific><html><html-template location="component://ecommerce/template/catalog/ConfigProductDetail.ftl"/></html></platform-specific>
+                <platform-specific><html><html-template multi-block="true" location="component://ecommerce/template/catalog/ConfigProductDetail.ftl"/></html></platform-specific>
             </widgets>
         </section>
     </screen>