Guest User

Untitled

a guest
Apr 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. foreach($attributes as $attribute){
  2. if($av_list){
  3. $cur_av_list = $av_list . ',' . $attribute['value'];
  4. $cur_av_uri = $this->request->get['av'] . ',' . $attribute['value'] . "|" . $attribute['name'];
  5. } else {
  6. $cur_av_list = $attribute['name'];
  7. $cur_av_uri = $attribute['value'] . "|" . $attribute['name'];
  8. }
  9. $tmp_uri = explode('&', $ln_uri);
  10. $tmp_uri_array = $this->remove_item_by_value($tmp_uri, 'av');
  11. $new_uri = implode('&', $tmp_uri_array);
  12. $this->data['attributes'][$attribute['name']][] = array(
  13. 'name' => $attribute['value'],
  14. 'qty' => $attribute['qty'],
  15. 'href' => $this->url->link('product/browse', $new_uri . '&av=' . $cur_av_uri)
  16. );
  17.  
  18. }
Add Comment
Please, Sign In to add comment