Piece of code for Magento phtml file
£20-250 GBP
Paid on delivery
My Magento website contains downloadable products, each one has many links which can be purchased separately. When these are added to the cart/basket/order I have a mini-cart which displays the items in the cart. However, it only shows the title of the product and I want it to show the title of the link(s) selected as well e.g.
You have 3 items in your order
Product A:
Link Title A3
Link Title A4
Product B:
Link Title A5
The code to add the link titles needs to be added in the phtml file given below (look for ADD LINK TITLE HERE)
<?php $_item = $this->getItem() ?>
<li class="item">
<?php if ($this->hasProductUrl()): ?>
<a href="<?php echo $this->getProductUrl()?>" title="<?php echo $this->htmlEscape($this->getProductName()) ?>" class="product-image"><img src="<?php echo $this->getProductThumbnail()->resize(50, 50)->setWatermarkSize('30x10'); ?>" width="50" height="50" alt="<?php echo $this->htmlEscape($this->getProductName()) ?>" /></a>
<?php else: ?>
<span class="product-image"><img src="<?php echo $this->getProductThumbnail()->resize(50, 50)->setWatermarkSize('30x10'); ?>" width="50" height="50" alt="<?php echo $this->htmlEscape($this->getProductName()) ?>" /></span>
<?php endif; ?>
<div class="product-details">
<a href="<?php echo $this->getDeleteUrl() ?>" title="<?php echo $this->__('Remove This Item') ?>" onclick="return confirm('<?php echo $this->__('Are you sure you would like to remove this item from the shopping cart?') ?>');" class="btn-remove"><?php echo $this->__('Remove This Item') ?></a>
<p class="product-name"><?php if ($this->hasProductUrl()): ?><a href="<?php echo $this->getProductUrl() ?>"><?php endif; ?><?php echo $this->htmlEscape($this->getProductName()) ?><?php if ($this->hasProductUrl()): ?></a><?php endif; ?></p>
ADD LINK TITLE HERE
<?php if ($_options = $this->getOptionList()):?>
<div class="truncated">
<div class="truncated_full_value">
<dl class="item-options">
<?php foreach ($_options as $_option) : ?>
<dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
<dd>
<?php if (is_array($_option['value'])): ?>
<?php echo nl2br(implode("\n", $_option['value'])) ?>
<?php else: ?>
<?php echo $_option['value'] ?>
<?php endif; ?>
</dd>
<?php endforeach; ?>
</dl>
</div>
<a href="#" onclick="return false;" class="details"><?php echo $this->__('Details') ?></a>
</div>
<?php endif; ?>
</div>
</li>
PLEASE NOTE: the deliverable is to tell me the code to add in the phtml file given, you do not even need to log in to my server. Please be aware that I have already tried $this->getLinks() but this does not return an array of links.
Project ID: #2605522
About the project
Awarded to:
11 freelancers are bidding on average £79 for this job
Dear Buyer! We are ready to start working on this project, please check the PM for details and our work experience. Regards, Project Manager, Platonic Solutions
Got Expertise in doing this sort of stuff... All payments through Milestone Payment (Escrow)... Online 16 Hours a day, Can start right away.. Thanks
hi dwesp, we have read your requirements and interested in job ..... please check PMB for our work and expertise ..... regards, sajjj
Custom software development: w w w . The Administrator removed this message for containing contact details which breaches our Terms of Service . i o