[Solved] FE basket does not recognize, when images were deleted in BE (Services)

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
rowild

[Solved] FE basket does not recognize, when images were deleted in BE (Services)

Post by rowild » 14 Nov 2020, 21:53

This is the situation:

A service has an image assigned (e.g. logo of a delivery service) and this image is displayed in the FE in the basket section.
When I delete the image from the service in the BE and clear all caches (even click the update button in the aimeos ext), the FE still tries to display the image in the basket (checkout/standard/detail-standard.php template).

This is weird, because there is a check in the template, if a media item exists:

Code: Select all

<?php if( ( $url = $service->getMediaUrl() ) != '' ) : ?> // <-- this should be false now
	<img class="[ detail ]" src="<?= $enc->attr( $this->content( $url ) ); ?>" />
<?php endif; ?>
Also, when deleting images from uploads/tx_aimeos manually and then clearing all caches and respective tables, Aimeos still finds links to the non-existing files and tries to display those (e.g. "payment" in the checkout process).

What has to be done to fix that? Re-assigning an image does not work either...
Last edited by rowild on 19 Nov 2020, 11:36, edited 1 time in total.

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: FE basket does not recognize, when images were deleted in BE (Services)

Post by aimeos » 16 Nov 2020, 09:43

The basket is cached and only updated if you change something in the basket, so if you delete the delivery/payment images in the backend, the URLs are still in the cached baskets. Add a product to the basket and the problem should go away.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star


Post Reply