patronbutiken LiteCart Fan Fra Sweden Medlem siden apr. 2019 patronbutiken nov. 28 2021 08:17 p.m. Hello, I need to change the links in the page that shows manufactures logotypes to the same link as shown in sidemenu (categorytree) but im running out of ideas how to fix that. Regards Peter
tim Founder Fra Sweden Medlem siden mai 2013 tim nov. 28 2021 08:36 p.m. See this line https://github.com/litecart/litecart/blob/cc6e73ccf44413548f3151b00d98a969b095920a/public_html/pages/manufacturers.inc.php#L31
patronbutiken LiteCart Fan Fra Sweden Medlem siden apr. 2019 patronbutiken nov. 28 2021 08:45 p.m. Not follow you here Tim. In box-manufacturer-logotypes.inc.php there's a line <a href="<?php echo htmlspecialchars($logotype['link']); ?>"><img src="<?php echo document::href_link(WS_DIR_APP . $logotype['image']['thumbnail']); ?>" alt="" title="<?php echo htmlspecialchars($logotype['title']); ?>" ></a> Thats the link i need to change to something like. <a href="<?php echo htmlspecialchars($category['link']); ?>"><img src="<?php echo document::href_link(WS_DIR_APP . $logotype['image']['thumbnail']); ?>" alt="" title="<?php echo htmlspecialchars($logotype['title']); ?>" ></a> As i understand the $category in an variable but it wont be recognized in the file meantioned above. Php is not my strongest (i more into asp) yea i know im oldschool ;-)
tim Founder Fra Sweden Medlem siden mai 2013 tim nov. 29 2021 01:17 a.m. Oh my bad. I thought you meant the manufacturers page. Well this is the line that cooks the link: https://github.com/litecart/litecart/blob/cc6e73ccf44413548f3151b00d98a969b095920a/public_html/includes/boxes/box_manufacturer_logotypes.inc.php#L23 But to insert a category id you would have to know which one (if multiple categories).