Magento Listings error - magento

Hello i am having an error in my magento webshop. On certain grouped products. There should be a div class listing for every row. But on some grouped product pages the listing for the first row goes wrong. Which then results in the whole page going wrong. When i check the page source. I see that the second row has been put inside the first row. For an example http://msk.clicksite.nl/pleisters-en-antidruk/anti-druk-middelen?p=1. The strange thing is if you go to page 2 the error is gone.
I hope someone has experienced this problem or knows what is going wrong.
Thanks in advance.

The problem is in your product description. You have an open tag that's messing your design up.
<div class="product-content">
<ul><li>Zelfklevend beschermpleister 2 mm.</li> <li>Ook verkrijgbaar als fleecy foam 5 mm.</...
</div>
To fix it, go into your product description and remove the unordered list formatting <ul><li>. A permanent solution would be to go to your template and edit the code that's truncating the description. Strip all of the html from it and you should be all set. Try /app/design/frontend/YOUR_PACKAGE/YOUR_THEME/catalog/product/list.phtml

Related

Why is my custom paginator not loading results as it should?

In my last post I was asking how to let the user decide on pagination numbers. I thought I had figured it out, but now it appears I messed something up, as the pagination seems to work but as soon as you go to the next page, it's blank and the number of pages is set to 1.
importeren.blade.php page (this is where the data of the imported file(s) is shown). This also has the pagination links for Laravel, I feel the error could be within there but I am not 100% sure.
DataController index method that loads the amount of pages as specified by the user:
Here is a short clip displaying what happens once I enter the results for the amount of records to be displayed per page.
I do not know what I am missing, but if anyone could help out that'd be amazing.
You should append your parameter to each pagination link.
To do so you can use {{$datas->appends(['paginate_number' => request('paginate_number')])->links()}}
I will suggest to change method="POST" to method="GET" in the form.
First try as a static like this
$datas = Data::paginate(10);
If it works then you have to change $request->input('paginate_number')

Can't get short description in category list view - despite trying suggestions

Have looked at Cant retrieve short description in category list view, but despite setting "Used in Product Listing" for the short_description attribute and rebuilding the indexes, and turning off the flat catalogues, $_product->getShortDescription() still doesn't return anything.
Is there anything else I can try, or is there some way I can debug what is going on?
Check this first,
When you are editing the list.phtml file both Grid view and List view are both created in this file. Test with a quick message in place of your getShortDescription call just to make sure you are in the right place.. If you are, please post your code in here and I will be glad to help.

Magento Not Translating Wishlist Product Name and Description

I have a developmental Magento Store I'm setting up with two languages. Everything works perfect except the SideBar Wishlist and the "My Account" Wishlist displays the Spanish option no matter what. Everything switches i.e. the "My Wishlist" title header, even the email to friend box that automatically writes in "Please, enter your comments..." changes correctly. But the product name and discription remians in Spanish. I've tried this suggestion here: Wishlist don´t capture store views lenguage
Has anyone figured out how to fix this or what I might have set incorrectly?
Thanks
I had this problem as well on Magento 1.6.2CE. - while switching store languages product names remain in default language.
On a file Wishlist\Model\Item.php arround line 319 you need to remove the line of code:
public function getProduct()
{
$product = $this->_getData('product'); // <-- remove this line
The $product object is reloaded again with the correct store filter.
I don't really understand the scenario, but based on your title I had came up with this.
By any chance, did you manually code the text on a HTML block?
I have came across with this problem, and what I did is find the code snippets where the text is being called. There I changed it with the code below, instead of directly using the text itself. Hope that it makes sense.
<?php $this->__('Customers'); ?>

Magento Specifications (Additional Data = Attributes) not showing ONLY on two product pages??

I’m scratching my head over this one as I can’t quite figure out what’s going on.
The Specifications tab is supposed to show all the attributes for these two products, but there’s nothing shown here:
http://www.centurioncctv.com/index.php/outlet/recordersoutlet/hd16p.html
http://www.centurioncctv.com/index.php/outlet/recordersoutlet/hd08p.html
These two products are in the Digital Recorders Attribute set, just like the rest of these DVRs on other pages...
All of these DVRs show Specifications (Additional Data) correctly.... but why only on the two pages above nothing would show...?
Please share some ideas with me…
I’ve tried recreating the product (not duplicating), but the result is the same.
Does anyone know where to start? I know that it has something to do with view.phtml… or something. Or is it that perhaps the folder in which the attributes are stored have wrong permission?
Does anyone know where to look for permission status for certain products’ attributes??
I also added “Downloads” and they are also not shown…
Anyone? Please help?
Thank you!!
The additional attributes are actually rendered if you look at the generated page source. There seems to be a <div> nesting error in the description content, so the javascript selector to show the attributes doesn't work correctly.
I suggest cleaning up the HTML for the description, and the other tab should start working again.

Pinpointing the difference and changes made between two pages in magento 1.6.2

I have two pages that should be using the exact same template and layout.
The correct item layout can be seen below.
http://dokha.co/index.php/medwakh/custom-medwakh-from-white-horse-studios-13.html
The incorrect item layout is below.
http://dokha.co/index.php/shisha-tobacco/al-fakher-shisha-tobacco-1.html
As you can see in the first image the layout of the item is compact. In the second link it is all drawn out.
I am curious to know if you can tell me how to make the second one like the first one, The compact style. I am not sure what modifications could have been made in magento to cause the layout to only show up that way for specific items, as only the items in the category on link 1 behave that way, I would like to know how to make them all behave this way.
Ok, first thing: the layouts are slightly different because in the first example, you have simple product and in the second example you have a configurable product.
So, view.phtml is including different templates in each.
Regardless though, the actually culprit of the expanded space you are seeing in the second example is being caused by a clearing div. Simply remove it.
The div you are looking for is this:
<div class="clearer"></div>
and you will find it in app/design/frontend/your_package/your_theme/template/catalog/product/view.phtml

Resources