extcode / cart_products

CartProducts is a TYPO3 extension and provides an own data storage for simple and configurable products. Products can be offered via a list and detail view and can be purchased via cart function of the Cart extension.
7 stars 25 forks source link

When Using AJAX Mini cart doesn't update #93

Open HenryAveMedi opened 3 years ago

HenryAveMedi commented 3 years ago

any idea to what i have to do to access the new cart object and render it in the mini cart?

rintisch commented 1 month ago

@HenryAveMedi Is this still an open issue for you?

khlifanisos commented 3 weeks ago

i 'am having the same problem here any solution please ?

rintisch commented 3 weeks ago

Do you mean how to add it to the page?

Could you try the following

lib.miniCart = COA_INT
lib.miniCart {
  10 = USER_INT
  10 {
    userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
    extensionName = Cart
    pluginName = MiniCart
    vendorName = Extcode
  }
}

I thought I documented it but I missed that...

rintisch commented 2 weeks ago

@khlifanisos Did my comment help you? Or are you looking for something different?

khlifanisos commented 2 weeks ago

@rintisch my problem is that when i put the extension cart before my main extension (in the template>edit-the-whole-template-record>includes ) the add to cart button doesn't work anymore and when i put the it under my main extension it works fine the AddToCartbyAjax works fine and the product is added to the mini cart in my site

rintisch commented 2 weeks ago

@khlifanisos Now I can understand your problem better. But it's not the problem which was initially mentioned in this ticket as I understand it. Unfortunately I cannot help you with the given information because I do not know what your main extension is doing and which cart version you are using. With an older version of EXT:cart the Javascript is added via TypoScript. Maybe your main extension overwrites this JavaScript? Have you tested whether the JavaScript from EXT:cart is still present when the main extension is placed underneath EXT:cart?